Пример #1
0
        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 HotToHelpInfoManagementTests()
 {
     _howToHelpInformationService = ServiceProvider.Instance.Resolve <IHowToHelpInformationService>();
     _accountManagementService    = ServiceProvider.Instance.Resolve <IAccountManagementService>();
     _howToHelpInformationService.BecomeVolunteerUrl = RequestUriHelper.OrganizationInfoUri;
     _howToHelpInformationService.DonateInfoUrl      = RequestUriHelper.HowToHelpUri;
     _accountManagementService.RequestUri            = RequestUriHelper.JwtTokenUri;
     _testingObject = TestingObjectProvider.Instance.HowToHelpInfo;
     _token         = _accountManagementService.SignIn(TestingObjectProvider.Instance.Login).Result;
 }
Пример #3
0
 public HowToHelpController(IHowToHelpInformationService howToHelpInformationService, IBackendErrorsService backendErrorsService,
                            IStringLocalizer <HowToHelpController> localizer, IOptions <AppSettings> settings, IAuthService authService)
     : base(backendErrorsService, localizer, settings, authService)
 {
     _howToHelpInformationService = howToHelpInformationService;
 }