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 NewsManagementTest() { _newsManagementService = ServiceProvider.Instance.Resolve <INewsManagementService>(); _accountManagementService = ServiceProvider.Instance.Resolve <IAccountManagementService>(); _newsManagementService.RequestUri = RequestUriHelper.NewsUri; _accountManagementService.RequestUriJwt = RequestUriHelper.JwtTokenUri; _testingNews = TestingObjectProvider.Instance.News; _token = _accountManagementService.SignIn(TestingObjectProvider.Instance.Login).Result; }