public void VerifyDuplicateContacts_Failed() { // Arrange Demographics_Failed_data(); var controller = new RegistrationController(new RegistrationRepository(token)); // Act var modelResponse = controller.VerifyDuplicateContacts(demographicsViewModel); //Assert Assert.IsTrue(modelResponse.DataItems != null, "Data items can't be null"); Assert.IsTrue(modelResponse.DataItems.Count > 0, "Contact demography exists for invalid data."); }
public void VerifyDuplicateContacts_Success() { // Arrange Demographics_Success_data(); var controller = new RegistrationController(new RegistrationRepository(token)); // Act var modelResponse = controller.VerifyDuplicateContacts(demographicsViewModel); //Assert Assert.IsTrue(modelResponse.DataItems != null, "Data items can't be null"); Assert.IsTrue(modelResponse.DataItems.Count > 0, "Atleast one contact demography must exists."); }