示例#1
0
        public void Test_DeleteGender()
        {
            var data     = new EfData();
            var expected = new Gender()
            {
                GenderId = 3
            };
            var actual = data.ChangeGender(expected, System.Data.Entity.EntityState.Deleted);

            Assert.True(actual);
        }
示例#2
0
        public void Test_ChangeGender()
        {
            var data     = new EfData();
            var expected = new Gender()
            {
                GenderName = "Martian", Active = false
            };
            var actual = data.ChangeGender(expected, System.Data.Entity.EntityState.Added);

            Assert.True(actual);
        }