public HotelsService(MbDbContext dbContext, IMapper mapper, ImagesUploader imagesUploader, IOblastsService oblastsService) { this.dbContext = dbContext; this.mapper = mapper; this.imagesUploader = imagesUploader; this.oblastsService = oblastsService; }
public OblastsServiceTests() { var services = new ServiceCollection(); services.AddDbContext <MbDbContext>(opt => opt.UseInMemoryDatabase(Guid.NewGuid().ToString())); services.AddScoped <IOblastsService, OblastsService>(); this.provider = services.BuildServiceProvider(); this.dbContext = this.provider.GetService <MbDbContext>(); this.oblastsService = this.provider.GetService <IOblastsService>(); }
public MonumentsController( IMonumentsService monumentsService, IMonumentReviewsService monumentReviewsService, IMonumentCommentsService monumentCommentsService, IOblastsService oblastsService, IMapper mapper) { this.monumentsService = monumentsService; this.monumentReviewsService = monumentReviewsService; this.monumentCommentsService = monumentCommentsService; this.oblastsService = oblastsService; this.mapper = mapper; }
public HotelsController( IHotelsService hotelsService, IHotelReviewsService hotelReviewsService, IHotelCommentsService hotelCommentsService, IOblastsService oblastsService, IMapper mapper) { this.hotelsService = hotelsService; this.hotelReviewsService = hotelReviewsService; this.hotelCommentsService = hotelCommentsService; this.oblastsService = oblastsService; this.mapper = mapper; }
public OblastsController(IOblastsService oblastsService) { this.oblastsService = oblastsService; }