public Boolean CanDelete(ProfileDeleteView view) { Boolean isValid = IsCorrectPassword(view.Id, view.Password); isValid &= ModelState.IsValid; return isValid; }
public ProfileControllerTests() { validator = Substitute.For<IAccountValidator>(); service = Substitute.For<IAccountService>(); profileDelete = ObjectFactory.CreateProfileDeleteView(); profileEdit = ObjectFactory.CreateProfileEditView(); controller = Substitute.ForPartsOf<ProfileController>(validator, service); ReturnCurrentAccountId(controller, "Test"); }