public void SetUp() { ServiceLocatorInitializer.Init(); _orgRepository = MockRepository.GenerateMock<IOrgRepository>(); _orgRepository.Stub(r => r.DbContext) .Return(MockRepository.GenerateMock<IDbContext>()); _agencyManagementService = MockRepository.GenerateMock<IAgencyManagementService>(); _orgManagementService = new OrgManagementService(_orgRepository, _agencyManagementService); }