public void SetUp() { ServiceLocatorInitializer.Init(); supportTeamManagementService = MockRepository.GenerateMock <ISupportTeamManagementService>(); supportTeamSearchManagementService = MockRepository.GenerateMock <ISupportTeamSearchManagementService>(); _personManagementService = MockRepository.GenerateMock <IPersonManagementService>(); _authenticationProvider = MockRepository.GenerateMock <IAuthenticationProvider>(); supportTeamsController = new SupportTeamsController(supportTeamManagementService, supportTeamSearchManagementService, _personManagementService, _authenticationProvider); }
public void SetUp() { ServiceLocatorInitializer.Init(); supportTeamManagementService = MockRepository.GenerateMock<ISupportTeamManagementService>(); supportTeamSearchManagementService = MockRepository.GenerateMock<ISupportTeamSearchManagementService>(); _personManagementService = MockRepository.GenerateMock<IPersonManagementService>(); _authenticationProvider = MockRepository.GenerateMock<IAuthenticationProvider>(); supportTeamsController = new SupportTeamsController(supportTeamManagementService, supportTeamSearchManagementService, _personManagementService, _authenticationProvider); }