public IHttpActionResult Post(HrRequest hrRequest) { var hrRequestService = new HrRequestService(); hrRequest.AssignedTo = hrRequestService.AssignHrManager(); db.HrRequests.Add(hrRequest); db.SaveChanges(); return(Ok(hrRequest)); }
public void Assign_John() { var result = _hrRequestService.AssignHrManager(); Assert.AreEqual(result, "John"); }