示例#1
0
        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();
示例#3
0
 public void IndexView_ShouldReturnDefaultView()
 {
     controller
     .WithCallTo(c => c.Index())
     .ShouldRenderDefaultView();
 }