Esempio n. 1
0
        public ActionResult Create()
        {
            RoleFormViewModel viewModel =
                _roleManagementService.CreateFormViewModel();

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

            // Act
            RoleFormViewModel viewModelRetrieved =
                roleManagementService.CreateFormViewModel();

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