Esempio n. 1
0
        public async Task ThenIfASignleAddressIsFoundTheAddressViewShouldBePresented()
        {
            //Arange
            _viewModel.Addresses = new List <AddressViewModel>
            {
                new AddressViewModel()
            };

            //Act
            var viewResult = await _controller.SelectAddress(new FindOrganisationAddressViewModel()) as ViewResult;

            //Assert
            Assert.AreEqual("AddOrganisationAddress", viewResult?.ViewName);
        }