public async Task ThenTheDetailsShouldBeValidated() { //Arrange var model = new OrganisationDetailsViewModel(); //Act await _controller.AddOtherOrganisationDetails(model); //Assert _orchestrator.Verify(x => x.ValidateLegalEntityName(It.IsAny <OrganisationDetailsViewModel>()), Times.Once); }
public void ThenIGetTheAddOtherOrganisationView() { //Act var result = _controller.AddOtherOrganisationDetails("ABC123") as ViewResult; //Assert _orchestrator.Verify(x => x.GetAddOtherOrganisationViewModel(It.Is <string>(s => s == "ABC123")), Times.Once); Assert.IsNotNull(result); Assert.AreEqual("", result.ViewName); }