public async Task PostRegisteredOfficeAddressPrepopulate_WithNoSelection_RedirectsToRegisteredOfficeAddress() { // Arrange IWeeeClient weeeClient = A.Dummy<IWeeeClient>(); ISearcher<OrganisationSearchResult> organisationSearcher = A.Dummy<ISearcher<OrganisationSearchResult>>(); OrganisationRegistrationController controller = new OrganisationRegistrationController( () => weeeClient, organisationSearcher); var model = new AddressPrepopulateViewModel(); model.SelectedValue = "No"; // Act ActionResult result = await controller.RegisteredOfficeAddressPrepopulate(model); // Assert var redirectToRouteResult = ((RedirectToRouteResult)result); Assert.Equal("RegisteredOfficeAddress", redirectToRouteResult.RouteValues["action"]); }