Ajoute les notices sources et le renommage fusionné des auteurs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
LIMONIER Mathieu
2026-08-20 14:27:42 +02:00
co-authored by Copilot
parent 6b8f08ef26
commit e28d5bce32
24 changed files with 935 additions and 3 deletions
+19
View File
@@ -70,6 +70,25 @@ public class ServiceCatalogueTests : IDisposable
Assert.Equal("9782253004226", resultat.Livre!.Isbn);
}
[Fact]
public async Task Creer_conserve_lurl_de_la_notice_source()
{
var resultat = await _service.CreerAsync(
new EnregistrementLivre
{
Titre = "Germinal",
UrlNotice = "https://catalogue.bnf.fr/ark:/12148/cb34676750b",
},
"mathieu");
Assert.Equal(
"https://catalogue.bnf.fr/ark:/12148/cb34676750b",
resultat.Livre!.UrlNotice);
Assert.Equal(
resultat.Livre.UrlNotice,
(await _db.Livres.SingleAsync()).UrlNotice);
}
[Fact]
public async Task Creer_refuse_un_titre_vide()
{