Пример #1
0
        public ActionResult Create()
        {
            SupportTeamFormViewModel viewModel =
                _supportTeamManagementService.CreateFormViewModel();

            return(View(viewModel));
        }
Пример #2
0
        public void CanCreateFormViewModel()
        {
            // Establish Context
            var viewModelToExpect = new SupportTeamFormViewModel();

            // Act
            SupportTeamFormViewModel viewModelRetrieved =
                supportTeamManagementService.CreateFormViewModel();

            // Assert
            viewModelRetrieved.ShouldNotBeNull();
            viewModelRetrieved.SupportTeam.ShouldBeNull();
        }