Métodos usados con frecuencia
Métodos usados con frecuencia
Métodos usados con frecuencia
Métodos usados con frecuencia
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); }