public void CreateTest() { u = new AppUser(); u.Name = "admin"; u.AppUserId = context.AppUser.Count() + 1; context.AppUser.Add(u); context.SaveChanges(); Assert.IsNotNull(context.AppUser.Find(2)); }
public void CreateTest() { app = new AppConfig(); app.BreweryName = "new name"; app.DefaultUnits = "metric"; app.BreweryId = context.AppConfig.Count() + 1; context.AppConfig.Add(app); context.SaveChanges(); Assert.IsNotNull(context.AppConfig.Find(2)); }