public void CanGetOrg()
        {
            // Establish Context
            Org orgToExpect =
                OrgInstanceFactory.CreateValidTransientOrg();

            _orgRepository.Expect(r => r.Get(1))
            .Return(orgToExpect);

            // Act
            Org orgRetrieved =
                _orgManagementService.Get(1);

            // Assert
            orgRetrieved.ShouldNotBeNull();
            orgRetrieved.ShouldEqual(orgToExpect);
        }
Example #2
0
        public ActionResult Show(int id)
        {
            Org org = _orgManagementService.Get(id);

            return(View(org));
        }