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