public void RenderIndextView_WhenCalledWithAboutViewModel() { // Arrange AboutController aboutController = new AboutController(); var aboutViewModel = new AboutViewModel(); // Act & Assert aboutController .WithCallTo(c => c.Index(aboutViewModel)) .ShouldRenderView("Index") .WithModel <AboutViewModel>(); }
public void Index() => sut.WithCallTo(c => c.Index()) .ShouldRenderDefaultView();
public void IndexView_ShouldReturnDefaultView() { controller .WithCallTo(c => c.Index()) .ShouldRenderDefaultView(); }