Exemplo n.º 1
0
        public void ReturnProperView_WhenIvokedWithId()
        {
            var cityServiceMock    = new Mock <ICityService>();
            var addressServiceMock = new Mock <IAddressService>();

            var controller = new AddressController(cityServiceMock.Object, addressServiceMock.Object);
            var result     = controller.CreateAddressByCompanyId(1) as ViewResult;

            Assert.AreEqual("Create", result.ViewName);
        }