Пример #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;
        }
Пример #2
0
 public PetsManagementTest()
 {
     _petsManagementService               = ServiceProvider.Instance.Resolve <IPetsManagementService>();
     _accountManagementService            = ServiceProvider.Instance.Resolve <IAccountManagementService>();
     _petsManagementService.RequestUri    = RequestUriHelper.PetsUri;
     _accountManagementService.RequestUri = RequestUriHelper.JwtTokenUri;
     _testingPet = TestingObjectProvider.Instance.Pet;
     _token      = _accountManagementService.SignIn(TestingObjectProvider.Instance.Login).Result;
 }
Пример #3
0
 public CommentsController(ICommentsManagementService commentsManagementService,
                           IPetsManagementService petsManagementService,
                           IBackendErrorsService backendErrorsService,
                           IStringLocalizer <CommentsController> localizer,
                           IOptions <AppSettings> settings, IAuthService authService,
                           IMemoryCache memoryCache) : base(backendErrorsService, localizer, settings, authService, memoryCache)
 {
     _commentsManagementService = commentsManagementService;
     _petsManagementService     = petsManagementService;
 }
Пример #4
0
 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;
 }