Exemple #1
0
        public async Task ForWithTransferSenderThenReturnsWithTransferSenderViewModel()
        {
            var f = new WhenGettingCohortsFixture();

            var result = await f.Sut.WithTransferSender(f.Request);

            result.VerifyReturnsViewModel().WithModel <WithTransferSenderViewModel>();
        }
Exemple #2
0
        public async Task ForWithTransferSenderThenCallsModelMapper()
        {
            var f = new WhenGettingCohortsFixture();

            await f.Sut.WithTransferSender(f.Request);

            f.ModelMapperMock.Verify(x => x.Map <WithTransferSenderViewModel>(f.Request));
        }
Exemple #3
0
        public async Task ForDraftThenCallsModelMapper()
        {
            var f = new WhenGettingCohortsFixture();

            await f.Sut.Draft(f.Request);

            f.ModelMapperMock.Verify(x => x.Map <DraftViewModel>(f.Request));
        }
Exemple #4
0
        public async Task ForDraftThenReturnsDraftViewModel()
        {
            var f = new WhenGettingCohortsFixture();

            var result = await f.Sut.Draft(f.Request) as ViewResult;

            Assert.NotNull(result);
            Assert.AreEqual(typeof(DraftViewModel), result.Model.GetType());
        }