Exemplo n.º 1
0
 public Handler(IMapper mapper, IAzureServiceBus azureServiceBus, AppDbContext context, IAzureBlobStorageService blobStorageService)
 {
     this.mapper             = mapper;
     this.context            = context;
     this.azureServiceBus    = azureServiceBus;
     this.blobStorageService = blobStorageService;
 }
 public FaceDetect(IConfiguration configuration,
                   IFaceService faceService,
                   IAzureBlobStorageService azureBlobStorageService)
 {
     _configuration           = configuration;
     _faceService             = faceService;
     _azureBlobStorageService = azureBlobStorageService;
 }
Exemplo n.º 3
0
 public BadgeController(IChecklistRepository checklistRepository,
                        ICloudConverterService cloudConverter,
                        IAzureBlobStorageService blobStorageService)
 {
     mChecklistRepository = checklistRepository;
     mCloudConverter = cloudConverter;
     mBlobStorageService = blobStorageService;
 }
Exemplo n.º 4
0
 public IntegrationSpikes(
     IAzureBlobStorageService azureStorageAccountBlobStorageService,
     IAzureMapsService azureMapsService
     )
 {
     this._azureStorageAccountBlobStorageService = azureStorageAccountBlobStorageService;
     this._azureMapsService = azureMapsService;
 }
Exemplo n.º 5
0
 public ImagesController(
     IMyCommunityContext dbContext,
     IMapper mapper,
     IAuth0Service auth0Service,
     IAzureBlobStorageService azureBlobStorageService
     ) : base(dbContext, mapper, auth0Service)
 {
     this.azureBlobStorageService = azureBlobStorageService;
 }
Exemplo n.º 6
0
 public PostsController(
     PostsRepository postsRepository,
     IAzureBlobStorageService azureBlobStorageService,
     LikesRepository likesRepository)
 {
     this.postsRepository         = postsRepository;
     this.azureBlobStorageService = azureBlobStorageService;
     this.likesRepository         = likesRepository;
 }
Exemplo n.º 7
0
 public UserController(IUserService userService, IAzureBlobStorageService azureBlobStorageService, IAzureBusService azureBusService, IMapper mapper, IUnitOfWork unitOfWork, UserManager <ApplicationUser> userManager)
 {
     _mapper                  = mapper;
     _unitOfWork              = unitOfWork;
     _userManager             = userManager;
     _userService             = userService;
     _azureBusService         = azureBusService;
     _azureBlobStorageService = azureBlobStorageService;
 }
Exemplo n.º 8
0
        public StudyLogoDeleteService(
            IAzureBlobStorageService blobService,
            IAzureBlobStorageUriBuilderService azureStorageAccountTokenService)
        {
            _azureBlobStorageService         = blobService;
            _azureStorageAccountTokenService = azureStorageAccountTokenService;

            _azureBlobStorageService.SetConnectionParameters(ConfigConstants.STUDY_LOGO_STORAGE_CONSTRING);
            _azureStorageAccountTokenService.SetConnectionParameters(ConfigConstants.STUDY_LOGO_STORAGE_CONSTRING);
        }
Exemplo n.º 9
0
 public ProfileController(
     UsersRepository usersRepository,
     SubscriptionsRepository subscriptionsRepository,
     PostsRepository postsRepository,
     IAzureBlobStorageService azureBlobStorageService)
 {
     this.usersRepository         = usersRepository;
     this.subscriptionsRepository = subscriptionsRepository;
     this.postsRepository         = postsRepository;
     this.azureBlobStorageService = azureBlobStorageService;
 }
Exemplo n.º 10
0
 public AzureBlobStorageHealthCheck(IAzureBlobStorageClient azureBlobStorageClient,
                                    ISalesCatalogueStorageService scsStorageService,
                                    IOptions <EssFulfilmentStorageConfiguration> essFulfilmentStorageConfiguration,
                                    ILogger <AzureBlobStorageService> logger,
                                    IAzureBlobStorageService azureBlobStorageService)
 {
     this.azureBlobStorageClient            = azureBlobStorageClient;
     this.scsStorageService                 = scsStorageService;
     this.essFulfilmentStorageConfiguration = essFulfilmentStorageConfiguration;
     this.logger = logger;
     this.azureBlobStorageService = azureBlobStorageService;
 }
Exemplo n.º 11
0
 public AzureWebJobsHealthCheckService(IOptions <EssFulfilmentStorageConfiguration> essFulfilmentStorageConfiguration,
                                       IWebJobsAccessKeyProvider webJobsAccessKeyProvider,
                                       IWebHostEnvironment webHostEnvironment,
                                       IAzureBlobStorageService azureBlobStorageService,
                                       IAzureWebJobsHealthCheckClient azureWebJobsHealthCheckClient)
 {
     this.essFulfilmentStorageConfiguration = essFulfilmentStorageConfiguration;
     this.webJobsAccessKeyProvider          = webJobsAccessKeyProvider;
     this.webHostEnvironment            = webHostEnvironment;
     this.azureBlobStorageService       = azureBlobStorageService;
     this.azureWebJobsHealthCheckClient = azureWebJobsHealthCheckClient;
 }
Exemplo n.º 12
0
        public void Setup()
        {
            this.fakeEssFulfilmentStorageConfiguration = Options.Create(new EssFulfilmentStorageConfiguration()
            {
                ExchangeSetTypes = "sxs,mxs,lxs"
            });
            this.fakeWebJobsAccessKeyProvider      = A.Fake <IWebJobsAccessKeyProvider>();
            this.fakeWebHostEnvironment            = A.Fake <IWebHostEnvironment>();
            this.fakeAzureBlobStorageService       = A.Fake <IAzureBlobStorageService>();
            this.fakeAzureWebJobsHealthCheckClient = A.Fake <IAzureWebJobsHealthCheckClient>();

            azureWebJobsHealthCheckService = new AzureWebJobsHealthCheckService(fakeEssFulfilmentStorageConfiguration, fakeWebJobsAccessKeyProvider, fakeWebHostEnvironment, fakeAzureBlobStorageService, fakeAzureWebJobsHealthCheckClient);
        }
 public ProfileService(
     UserManager <User> userManager,
     IUnitOfWorkFactory unitOfWorkFactory,
     IMapper iMapper,
     ICarService autoRiaCarService,
     IAzureBlobStorageService azureBlobStorage)
 {
     _userManager       = userManager;
     _unitOfWorkFactory = unitOfWorkFactory;
     _iMapper           = iMapper;
     _autoRiaCarService = autoRiaCarService;
     _azureBlobStorage  = azureBlobStorage;
 }
Exemplo n.º 14
0
 public DatasetFileService(SepesDbContext db, IMapper mapper, ILogger <DatasetFileService> logger, IUserService userService,
                           IStudyPermissionService studyPermissionService,
                           IStudySpecificDatasetModelService studySpecificDatasetModelService,
                           IAzureBlobStorageService storageService,
                           IDatasetCloudResourceService datasetCloudResourceService,
                           IAzureBlobStorageUriBuilderService azureStorageAccountTokenService)
     : base(db, mapper, logger, userService, studyPermissionService)
 {
     _storageService = storageService;
     _studySpecificDatasetModelService = studySpecificDatasetModelService;
     _datasetCloudResourceService      = datasetCloudResourceService;
     _azureStorageAccountTokenService  = azureStorageAccountTokenService;
 }
Exemplo n.º 15
0
        public StudyLogoCreateService(SepesDbContext db,
                                      IStudyEfModelService studyModelService,
                                      IAzureBlobStorageService blobService,
                                      IAzureBlobStorageUriBuilderService azureStorageAccountTokenService)
        {
            _db = db;
            _studyModelService               = studyModelService;
            _azureBlobStorageService         = blobService;
            _azureStorageAccountTokenService = azureStorageAccountTokenService;

            _azureBlobStorageService.SetConnectionParameters(ConfigConstants.STUDY_LOGO_STORAGE_CONSTRING);
            _azureStorageAccountTokenService.SetConnectionParameters(ConfigConstants.STUDY_LOGO_STORAGE_CONSTRING);
        }
Exemplo n.º 16
0
 public FulfilmentServiceJob(IConfiguration configuration,
                             IFulfilmentDataService fulFilmentDataService, ILogger <FulfilmentServiceJob> logger, IFileSystemHelper fileSystemHelper,
                             IFileShareService fileShareService, IOptions <FileShareServiceConfiguration> fileShareServiceConfig,
                             IAzureBlobStorageService azureBlobStorageService, IFulfilmentCallBackService fulfilmentCallBackService)
 {
     this.configuration         = configuration;
     this.fulFilmentDataService = fulFilmentDataService;
     this.logger                    = logger;
     this.fileSystemHelper          = fileSystemHelper;
     this.fileShareService          = fileShareService;
     this.fileShareServiceConfig    = fileShareServiceConfig;
     this.azureBlobStorageService   = azureBlobStorageService;
     this.fulfilmentCallBackService = fulfilmentCallBackService;
 }
Exemplo n.º 17
0
        public void Setup()
        {
            this.fakeAzureBlobStorageClient = A.Fake <IAzureBlobStorageClient>();
            this.fakeLogger = A.Fake <ILogger <AzureBlobStorageService> >();
            this.fakeSalesCatalogueStorageService = A.Fake <ISalesCatalogueStorageService>();
            this.fakeAzureBlobStorageService      = A.Fake <IAzureBlobStorageService>();

            this.fakeEssFulfilmentStorageConfiguration = Options.Create(new EssFulfilmentStorageConfiguration()
            {
                QueueName = "testessdevqueue", StorageAccountKey = "testaccountkey", StorageAccountName = "testessdevstorage", StorageContainerName = "testContainer", DynamicQueueName = "testDynamicQueue", ExchangeSetTypes = "test"
            });

            azureBlobStorageHealthCheck = new AzureBlobStorageHealthCheck(fakeAzureBlobStorageClient, fakeSalesCatalogueStorageService, fakeEssFulfilmentStorageConfiguration, fakeLogger, fakeAzureBlobStorageService);
        }
Exemplo n.º 18
0
 public FulfilmentDataService(IAzureBlobStorageService azureBlobStorageService,
                              IFulfilmentFileShareService fulfilmentFileShareService,
                              ILogger <FulfilmentDataService> logger,
                              IOptions <FileShareServiceConfiguration> fileShareServiceConfig,
                              IConfiguration configuration,
                              IFulfilmentAncillaryFiles fulfilmentAncillaryFiles,
                              IFulfilmentSalesCatalogueService fulfilmentSalesCatalogueService,
                              IFulfilmentCallBackService fulfilmentCallBackService,
                              IMonitorHelper monitorHelper)
 {
     this.azureBlobStorageService    = azureBlobStorageService;
     this.fulfilmentFileShareService = fulfilmentFileShareService;
     this.logger = logger;
     this.fileShareServiceConfig          = fileShareServiceConfig;
     this.configuration                   = configuration;
     this.fulfilmentAncillaryFiles        = fulfilmentAncillaryFiles;
     this.fulfilmentSalesCatalogueService = fulfilmentSalesCatalogueService;
     this.fulfilmentCallBackService       = fulfilmentCallBackService;
     this.monitorHelper                   = monitorHelper;
 }
Exemplo n.º 19
0
        public void Setup()
        {
            fakeScsStorageService       = A.Fake <ISalesCatalogueStorageService>();
            fakeAzureBlobStorageService = A.Fake <IAzureBlobStorageService>();
            fakeQueryFssService         = A.Fake <IFulfilmentFileShareService>();
            fakeLogger                   = A.Fake <ILogger <FulfilmentDataService> >();
            fakeConfiguration            = A.Fake <IConfiguration>();
            fakeFulfilmentAncillaryFiles = A.Fake <IFulfilmentAncillaryFiles>();
            fakeFulfilmentDataService    = A.Fake <IFulfilmentDataService>();
            fakeFileShareServiceConfig   = Options.Create(new FileShareServiceConfiguration()
            {
                BaseUrl                 = "http://tempuri.org",
                CellName                = "DE260001",
                EditionNumber           = "1",
                Limit                   = 10,
                Start                   = 0,
                ProductCode             = "AVCS",
                ProductLimit            = 4,
                UpdateNumber            = "0",
                UpdateNumberLimit       = 10,
                ParallelSearchTaskCount = 10,
                EncRoot                 = "ENC_ROOT",
                ExchangeSetFileFolder   = "V01X01",
                Info            = "INFO",
                ProductFileName = "TEST.TXT",
                CatalogFileName = "CATALOG.031",
                CommentVersion  = "VERSION=1.0"
            });
            fakeEssFulfilmentStorageConfiguration = Options.Create(new EssFulfilmentStorageConfiguration()
            {
                QueueName = "", StorageAccountKey = "", StorageAccountName = "", StorageContainerName = ""
            });
            fakeFulfilmentSalesCatalogueService = A.Fake <IFulfilmentSalesCatalogueService>();
            fakeFulfilmentCallBackService       = A.Fake <IFulfilmentCallBackService>();
            fakeMonitorHelper = A.Fake <IMonitorHelper>();

            fulfilmentDataService = new FulfilmentDataService(fakeAzureBlobStorageService, fakeQueryFssService, fakeLogger, fakeFileShareServiceConfig, fakeConfiguration, fakeFulfilmentAncillaryFiles, fakeFulfilmentSalesCatalogueService, fakeFulfilmentCallBackService, fakeMonitorHelper);
        }
Exemplo n.º 20
0
 public ReviewService(UserManager <User> userManager, IAzureBlobStorageService azureBlobStorage, IUnitOfWorkFactory unitOfWorkFactory)
 {
     _userManager       = userManager;
     _azureBlobStorage  = azureBlobStorage;
     _unitOfWorkFactory = unitOfWorkFactory;
 }
Exemplo n.º 21
0
 public void Setup()
 {
     fakeStorageConfig           = A.Fake <IOptions <EssFulfilmentStorageConfiguration> >();
     fakeAzureBlobStorageService = A.Fake <IAzureBlobStorageService>();
     service = new ExchangeSetStorageProvider(fakeStorageConfig, fakeAzureBlobStorageService);
 }
Exemplo n.º 22
0
 public ExchangeSetStorageProvider(IOptions <EssFulfilmentStorageConfiguration> storageConfig,
                                   IAzureBlobStorageService azureBlobStorageService)
 {
     this.storageConfig           = storageConfig;
     this.azureBlobStorageService = azureBlobStorageService;
 }
Exemplo n.º 23
0
 public FileUploadController(IAzureBlobStorageService abs, IConfiguration c, ILogger <FileUploadController> l)
 {
     _azureBlobStorageService = abs;
     _log    = l;
     _config = c;
 }