/// <summary>Ctor
 /// </summary>
 public ImageResizerMiddleware(RequestDelegate next, IWebHostEnvironment env, ILoggerFactory loggerFactory, IImageResizeService imageResizeService)
 {
     _next               = next;
     _env                = env;
     _logger             = loggerFactory.CreateLogger(DotCommonConsts.LoggerName);
     _imageResizeService = imageResizeService;
 }
 /// <summary>Ctor
 /// </summary>
 public ImageResizerMiddleware(ILogger <ImageResizerMiddleware> logger, RequestDelegate next, IWebHostEnvironment env, IImageResizeService imageResizeService)
 {
     _next               = next;
     _env                = env;
     _logger             = logger;
     _imageResizeService = imageResizeService;
 }
Exemple #3
0
 public void Setup()
 {
     centreCustomPromptsService = A.Fake <ICentreCustomPromptsService>();
     userService              = A.Fake <IUserService>();
     imageResizeService       = A.Fake <ImageResizeService>();
     jobGroupsDataService     = A.Fake <IJobGroupsDataService>();
     centreCustomPromptHelper = new CentreCustomPromptHelper(centreCustomPromptsService);
 }
Exemple #4
0
 public void Setup()
 {
     centreRegistrationPromptsService = A.Fake <ICentreRegistrationPromptsService>();
     userService          = A.Fake <IUserService>();
     imageResizeService   = A.Fake <ImageResizeService>();
     jobGroupsDataService = A.Fake <IJobGroupsDataService>();
     promptsService       = new PromptsService(centreRegistrationPromptsService);
 }
Exemple #5
0
 public MediaService(MediaContext context,
                     IMediaRepository mediaRepository,
                     IChecksumService checksumService,
                     IImageResizeService imageResizeService)
 {
     this.context            = context;
     this.mediaRepository    = mediaRepository;
     this.checksumService    = checksumService;
     this.imageResizeService = imageResizeService;
 }
Exemple #6
0
 public ConfigurationController(
     ICentresDataService centresDataService,
     IMapsApiHelper mapsApiHelper,
     ILogger <ConfigurationController> logger,
     IImageResizeService imageResizeService
     )
 {
     this.centresDataService = centresDataService;
     this.mapsApiHelper      = mapsApiHelper;
     this.logger             = logger;
     this.imageResizeService = imageResizeService;
 }
Exemple #7
0
 public MyAccountController(
     ICentreRegistrationPromptsService centreRegistrationPromptsService,
     IUserService userService,
     IImageResizeService imageResizeService,
     IJobGroupsDataService jobGroupsDataService,
     PromptsService registrationPromptsService
     )
 {
     this.centreRegistrationPromptsService = centreRegistrationPromptsService;
     this.userService          = userService;
     this.imageResizeService   = imageResizeService;
     this.jobGroupsDataService = jobGroupsDataService;
     promptsService            = registrationPromptsService;
 }
Exemple #8
0
 public MyAccountController(
     ICentreCustomPromptsService centreCustomPromptsService,
     IUserService userService,
     IImageResizeService imageResizeService,
     IJobGroupsDataService jobGroupsDataService,
     CentreCustomPromptHelper customPromptHelper
     )
 {
     this.centreCustomPromptsService = centreCustomPromptsService;
     this.userService          = userService;
     this.imageResizeService   = imageResizeService;
     this.jobGroupsDataService = jobGroupsDataService;
     centreCustomPromptHelper  = customPromptHelper;
 }
 public ImageService(IImageStorageService imageStorageService, IImageResizeService imageResizeService)
 {
     _imageStorageService = imageStorageService;
     _imageResizeService  = imageResizeService;
 }
Exemple #10
0
 public IconResizeUtitlityService(IImageResizeService resizeService, IProjectFileUpdater projectFileUpdater)
 {
     _resizeService      = resizeService;
     _projectFileUpdater = projectFileUpdater;
 }