public void TestGet() { HelloContext helloContext = new HelloContext(); User user = helloContext.Users.Include("Movements").First(); Assert.AreEqual(typeof(User), user.GetType()); }
public void TestCreate() { HelloContext helloContext = new HelloContext(); User user = new User(); user.Nombre = "Nico"; Movement movement = new Movement(); movement.CreationTime = DateTime.Now; user.Movements.Add(movement); helloContext.Users.Add(user); helloContext.SaveChanges(); }
public void InitializeDatabse() { HelloContext helloContext = new HelloContext(); HelloContextInitializaer helloContextInitializaer = new HelloContextInitializaer(); helloContextInitializaer.InitializeDatabase(helloContext); }