public ViewResult RequestAccess(RequestAccess request) { if(ModelState.IsValid) //freeman, p37 //TODO: business layer validations ? return View("Thank you for your submission", request.SubmittedByUser.ToString()); else { return View(); } }
public void DomainTestRequestAccessValidateF() { RequestAccess requestAccess2 = new RequestAccess(); Assert.IsFalse(requestAccess2.Validate()); }
public void DomainTestRequestAccessEqualsF() { Request requestAccess2 = new RequestAccess(); Assert.IsFalse(requestAccess.Equals(requestAccess2)); }