public PersonFormViewModel CreateFormViewModel()
        {
            var viewModel = new PersonFormViewModel
            {
                Orgs         = _orgManagementService.GetAll(),
                Supervisors  = _personRepository.GetActiveSupervisors(-1, "LastName", "Asc"),
                SupportTeams = _supportTeamRepository.GetAll(),
                Roles        = _roleManagementService.GetAll()
            };

            return(viewModel);
        }
        public void CanGetAllOrgs()
        {
            // Establish Context
            IList <Org> orgsToExpect = new List <Org>();

            Org org =
                OrgInstanceFactory.CreateValidTransientOrg();

            orgsToExpect.Add(org);

            _orgRepository.Expect(r => r.GetAll(Arg <string> .Is.Anything, Arg <string> .Is.Anything))
            .Return(orgsToExpect);

            // Act
            IList <Org> orgsRetrieved =
                _orgManagementService.GetAll();

            // Assert
            orgsRetrieved.ShouldNotBeNull();
            orgsRetrieved.Count.ShouldEqual(1);
            orgsRetrieved[0].ShouldNotBeNull();
            orgsRetrieved[0].ShouldEqual(org);
        }