diff --git a/Sources/TestUnitaire/TestEfLol.cs b/Sources/TestUnitaire/TestEfLol.cs index 33fffb9..af46a29 100644 --- a/Sources/TestUnitaire/TestEfLol.cs +++ b/Sources/TestUnitaire/TestEfLol.cs @@ -33,14 +33,16 @@ namespace TestUnitaire SkinEntity white = new SkinEntity { Name = "White", Description = "White skin", Icon = "white.png", Price = 150.99f }; SkinEntity green = new SkinEntity { Name = "Green", Description = "Green skin", Icon = "green.png", Price = 4.99f }; + RunePageEntity runePage1 = new RunePageEntity { Id = 1, Name = "runepage1"}; - var Dieu = new ChampionEntity + var Dieu = new ChampionEntity { Id = id, Name = name, Bio = bio, - Skins = new Collection(new List { black, white, green }) - }; + Skins = new Collection(new List { black, white, green }), + ListRunePages = new Collection(new List { { runePage1 } }) + }; ChampionEntity found = await context.Champions.SingleOrDefaultAsync(c => c.Name == "Zeus"); Assert.Null(found); @@ -54,9 +56,10 @@ namespace TestUnitaire Assert.Equal(1, await context.Champions.CountAsync()); Assert.Equal(name, found.Name); Assert.Equal(3,found.Skins.Count); + Assert.Equal(1, found.ListRunePages.Count); - // Test if the max length of the name is respected (30) and the max length of the bio is respected (256) - if (expected) + // Test if the max length of the name is respected (30) and the max length of the bio is respected (256) + if (expected) { Assert.True(found.Name.Length <= 30); Assert.True(found.Bio.Length <= 256);