private void EditarProductoActualizar() { ConfiguracionListado_MockData(); controller = new ProductoController(_repository); var result = controller.Editar(DataProductoEdicion()) as PartialViewResult; result.Should().BeNull(); webContextMock.Verify(c => c.SaveChanges(), Times.Once()); }
private void EditarProductoVista() { ConfiguracionListado_MockData(); controller = new ProductoController(_repository); var result = controller.Editar(2) as PartialViewResult; result.ViewName.Should().Be("_Editar"); var personModelCreate = (Product)result.Model; personModelCreate.Should().NotBeNull(); }