private static ProjectTeamMembersStorageProvider InitializeProjectTeamMembersStorageProvider(IServiceProvider serviceProvider) { var storageProvider = new ProjectTeamMembersStorageProvider(serviceProvider.GetService <AzureStorageOptions>()); storageProvider.InitializeAsync().Wait(); return(storageProvider); }
public ProjectService( IProjectRepository projectRepository, IUserRepository userRepository, ICountryRepository countryRepository, IScoringOffersRepository scoringOffersRepository, ProjectTeamMembersStorageProvider projectTeamMembersStorageProvider, ProjectStorageProvider projectStorageProvider, IClock clock) { _projectRepository = projectRepository; _countryRepository = countryRepository; _scoringOffersRepository = scoringOffersRepository; _projectTeamMembersStorageProvider = projectTeamMembersStorageProvider; _projectStorageProvider = projectStorageProvider; _clock = clock; _userRepository = userRepository; }