Example #1
0
        public ActionResult Create()
        {
            OrgFormViewModel viewModel =
                _orgManagementService.CreateFormViewModel();

            return(View(viewModel));
        }
        public void CanCreateFormViewModel()
        {
            // Establish Context
            var viewModelToExpect = new OrgFormViewModel();

            // Act
            OrgFormViewModel viewModelRetrieved =
                _orgManagementService.CreateFormViewModel();

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