Example #1
0
        public void InsertRolDreptTest()
        {
            var target = new RolDrept
            {
                IdDrept  = 1,
                IdRol    = 1,
                AreDrept = true
            };

            if (target.Save().Status == StatusEnum.Errors)
            {
                Assert.Fail();
            }
        }
Example #2
0
        public void UpdateRolDreptTest()
        {
            var target = new RolDrept
            {
                IdDrept  = 1,
                IdRol    = 2,
                AreDrept = false,
                ID       = 1
            };

            if (target.Save().Status == StatusEnum.Errors)
            {
                Assert.Fail();
            }
        }