public SubmissionService(ISectionRepository pSectionRepository, ISubmissionRepository pSubmissionRepository, ISalonYearRepository pSalonYearRepository, IImageService pImageService, IDbTransaction pDbTransaction) { this._sectionRepository = pSectionRepository; this._submissionRepository = pSubmissionRepository; this._salonYearRepository = pSalonYearRepository; this._imageService = pImageService; this._dbTransaction = pDbTransaction; }
public void Setup() { this.salonRepository = Substitute.For <ISalonRepository>(); this.salonYearRepository = Substitute.For <ISalonYearRepository>(); this.countryRepository = Substitute.For <ICountryRepository>(); this.salonYearService = new SalonYearService(this.salonRepository, this.salonYearRepository, this.countryRepository); Mapping.CreateConfiguration(); }
public void Setup() { this._sectionRepository = Substitute.For <ISectionRepository>(); this._submissionRepository = Substitute.For <ISubmissionRepository>(); this._salonYearRepository = Substitute.For <ISalonYearRepository>(); this._imageService = Substitute.For <IImageService>(); this._dbTransaction = Substitute.For <IDbTransaction>(); var lDbTransaction = Substitute.For <IDbContextTransaction>(); this._dbTransaction.BeginTransactionAsync().Returns(lDbTransaction); this.submissionService = new SubmissionService(this._sectionRepository, this._submissionRepository, this._salonYearRepository, this._imageService, this._dbTransaction); Mapping.CreateConfiguration(); }
public SalonYearService(ISalonRepository pSalonRepository, ISalonYearRepository pSalonYearRepository, ICountryRepository pCountryRepository) { this._countryRepository = pCountryRepository; this._salonRepository = pSalonRepository; this._salonYearRepository = pSalonYearRepository; }