예제 #1
0
        public async Task When_getting_closed_applications_the_applications_are_returned()
        {
            var userId            = _controller.User.UserId();
            var expectedViewModel = new ClosedApplicationsViewModel(userId, 1, 2, 3, 4, 5);

            _outcomeOrchestrator.Setup(x => x.GetClosedApplicationsViewModel(userId)).ReturnsAsync(expectedViewModel);

            var result = await _controller.ClosedApplications();

            Assert.AreSame(expectedViewModel, result.Model);
        }