public SubmissionRepository(IFileSystem fileSystem, IConfiguration configuration, IReferenceNumberGenerator referenceNumberGenerator)
 {
     submissionStoragePath         = configuration.GetValue <string>("Submission_Storage_Path");
     this.fileSystem               = fileSystem ?? throw new System.ArgumentNullException(nameof(fileSystem));
     this.referenceNumberGenerator = referenceNumberGenerator;
     if (!fileSystem.Directory.Exists(submissionStoragePath))
     {
         fileSystem.Directory.CreateDirectory(submissionStoragePath);
     }
 }
 public OfferServices(HomeHunterDbContext context,
                      IImageServices imageServices,
                      ICloudinaryService cloudinaryService,
                      IUserServices userServices,
                      IReferenceNumberGenerator referenceNumberGenerator,
                      IMapper mapper)
 {
     this.context                  = context;
     this.imageServices            = imageServices;
     this.cloudinaryService        = cloudinaryService;
     this.userServices             = userServices;
     this.referenceNumberGenerator = referenceNumberGenerator;
     this.mapper = mapper;
 }