public void AssignTest_WithFaultException() { var request = new AssignJobseekerListModel() { ClientNote = "Hello", ManagedBy = "AB1234_d", Jobseekers = new List <AssignJobseekerItemModel>() }; mockCaseLoadWcf.Setup(m => m.UpdateManagedByClientNotes(It.IsAny <UpdateRequest>())).Throws(new FaultException()); var response = SystemUnderTest().AssignJobseekers(request); Assert.IsNotNull(response); }
public void AssignTest_Basic() { var dummyResponse = new UpdateResponse(); var request = new AssignJobseekerListModel() { ClientNote = "Hello", ManagedBy = "AB1234_d", Jobseekers = new List <AssignJobseekerItemModel>() }; mockCaseLoadWcf.Setup(m => m.UpdateManagedByClientNotes(It.IsAny <UpdateRequest>())).Returns(dummyResponse); var response = SystemUnderTest().AssignJobseekers(request); Assert.IsNotNull(response); }