public void Setup() { _organizationService = new Mock <IOrganizationService>(); _gatewayLookupService = new Mock <IGatewayLookupService>(); _goVolunteerService = new Mock <IGoVolunteerService>(); _skillsService = new Mock <IGoSkillsService>(); _groupConnectorService = new Mock <IGroupConnectorService>(); _configurationWrapper = new Mock <IConfigurationWrapper>(); _attributeService = new Mock <IAttributeService>(); authType = "authType"; authToken = "authToken"; _fixture = new GoVolunteerController(_organizationService.Object, _groupConnectorService.Object, _gatewayLookupService.Object, _skillsService.Object, _goVolunteerService.Object, _attributeService.Object, _configurationWrapper.Object, new Mock <IUserImpersonationService>().Object, new Mock <IAuthenticationRepository>().Object) { Request = new HttpRequestMessage(), RequestContext = new HttpRequestContext() }; _fixture.Request.Headers.Authorization = new AuthenticationHeaderValue(authType, authToken); }
public void Setup() { _organizationService = new Mock <IOrganizationService>(); _gatewayLookupService = new Mock <IGatewayLookupService>(); _goVolunteerService = new Mock <IGoVolunteerService>(); _skillsService = new Mock <IGoSkillsService>(); _groupConnectorService = new Mock <IGroupConnectorService>(); _configurationWrapper = new Mock <IConfigurationWrapper>(); _attributeService = new Mock <IAttributeService>(); _fixture = new GoVolunteerController(_organizationService.Object, _groupConnectorService.Object, _gatewayLookupService.Object, _skillsService.Object, _goVolunteerService.Object, _attributeService.Object, _configurationWrapper.Object, new Mock <IUserImpersonationService>().Object) { Request = new HttpRequestMessage(), RequestContext = new HttpRequestContext() }; }