コード例 #1
0
        public void ThenReturnsView()
        {
            var fixture = new WhenGettingFileUploadStartFixture();

            var result = fixture.Act();

            result.VerifyReturnsViewModel();
        }
コード例 #2
0
        public void ThenProviderIdIsMapped()
        {
            var fixture = new WhenGettingFileUploadStartFixture();

            var viewResult = fixture.Act();

            var model = viewResult.VerifyReturnsViewModel().WithModel <FileUploadStartViewModel>();

            Assert.AreEqual(fixture.ProviderId, model.ProviderId);
        }