|
|
@ -86,9 +86,9 @@ namespace TestUnitaire
|
|
|
|
//context.Database.OpenConnection();
|
|
|
|
//context.Database.OpenConnection();
|
|
|
|
context.Database.EnsureCreated();
|
|
|
|
context.Database.EnsureCreated();
|
|
|
|
|
|
|
|
|
|
|
|
ChampionEntity chewie = new ChampionEntity {Id = 0, Name = "Chewbacca", Bio = "Zeus is the king of the gods." };
|
|
|
|
ChampionEntity chewie = new ChampionEntity { Name = "Chewbacca", Bio = "Zeus is the king of the gods." };
|
|
|
|
ChampionEntity yoda = new ChampionEntity {Id = 1, Name = "Yoda", Bio = "Zeus is the king of the gods." };
|
|
|
|
ChampionEntity yoda = new ChampionEntity { Name = "Yoda", Bio = "Zeus is the king of the gods." };
|
|
|
|
ChampionEntity ewok = new ChampionEntity { Id = 2, Name = "Ewok", Bio = "Zeus is the king of the gods." };
|
|
|
|
ChampionEntity ewok = new ChampionEntity {Name = "Ewok", Bio = "Zeus is the king of the gods." };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context.Champions.Add(chewie);
|
|
|
|
context.Champions.Add(chewie);
|
|
|
|