public NewsManagementService(IFilesManagementService filesManagementService, IRestService restService, IOptions <AppSettings> appSettings) { _filesManagementService = filesManagementService; _restService = restService; RequestUri = appSettings.Value.BackendBaseUrl + appSettings.Value.BackendNewsUrl; }
public SanityTests() { _petsManagementService = ServiceProvider.Instance.Resolve <IPetsManagementService>(); _petsStatusManagementService = ServiceProvider.Instance.Resolve <IPetsStatusManagementService>(); _newsManagementService = ServiceProvider.Instance.Resolve <INewsManagementService>(); _userManagementService = ServiceProvider.Instance.Resolve <IUsersManagementService>(); _filesManagementService = ServiceProvider.Instance.Resolve <IFilesManagementService>(); _organizationManagementService = ServiceProvider.Instance.Resolve <IOrganizationManagementService>(); _proposalsManagementService = ServiceProvider.Instance.Resolve <IProposalsManagementService>(); _howToHelpInformationService = ServiceProvider.Instance.Resolve <IHowToHelpInformationService>(); _accountManagementService = ServiceProvider.Instance.Resolve <IAccountManagementService>(); _helpersManagementService = ServiceProvider.Instance.Resolve <IHelpersManagementService>(); _commentsManagementService = ServiceProvider.Instance.Resolve <ICommentsManagementService>(); _petsManagementService.RequestUri = RequestUriHelper.PetsUri; _petsStatusManagementService.RequestUri = RequestUriHelper.PetsStatusUri; _newsManagementService.RequestUri = RequestUriHelper.NewsUri; _userManagementService.RequestUri = RequestUriHelper.UsersUri; _organizationManagementService.RequestUri = RequestUriHelper.OrganizationInfoUri; _proposalsManagementService.RequestUri = RequestUriHelper.ProposalsUri; _howToHelpInformationService.BecomeVolunteerUrl = RequestUriHelper.HowToHelpUri; _howToHelpInformationService.DonateInfoUrl = RequestUriHelper.HowToHelpUri; _accountManagementService.RequestUri = RequestUriHelper.JwtTokenUri; _helpersManagementService.RequestUri = RequestUriHelper.HelpersUri; _commentsManagementService.RequestUri = RequestUriHelper.CommentsUri; }
public NewsController(IFilesManagementService filesManagementService, INewsManagementService newsManagementService, IStringLocalizer <NewsController> localizer, IOptions <AppSettings> appSettings, IBackendErrorsService backendErrorsService, IAuthService authService) : base(backendErrorsService, localizer, appSettings, authService) { _filesManagementService = filesManagementService; _newsManagementService = newsManagementService; _appSettings = appSettings; }
public PetsController(IFilesManagementService filesManagementService, IPetsManagementService petsManagementService, IPetsStatusManagementService petsStatusManagementService, IHelpersManagementService helpersManagementService, IStringLocalizer <PetsController> localizer, IOptions <AppSettings> appSettings, IBackendErrorsService backendErrorsService, IAuthService authService) : base(backendErrorsService, localizer, appSettings, authService) { _filesManagementService = filesManagementService; _petsManagementService = petsManagementService; _petsStatusManagementService = petsStatusManagementService; _helpersManagementService = helpersManagementService; _appSettings = appSettings; }
public FilesManagementServiceTest() { _filesManagementService = ServiceProvider.Instance.Resolve <IFilesManagementService>(); }