public void Test_InsertMonster() { var data = new EfData(); var expected = new Monster() { GenderId = 1, TitleId = 1, TypeId = 1, Name = "MonsterTestName", PicturePath = "C:", Active = true }; var actual = data.ChangeMonster(expected, System.Data.Entity.EntityState.Added); Assert.True(actual); }
public void Test_InsertMonster() { var data = new EfData(); var bad = new Monster() { GenderId = 2, TitleId = 1, TypeId = 2, Name = "Big Ugly", PicturePath = "", Actve = true }; var actual = data.ChangeMonster(bad, System.Data.Entity.EntityState.Added); Assert.NotNull(actual); }