public TransportController(IEFContext <Transport> transport, IEFContext <TransportOwner> owners, ImagesDbContext imagesDb) { _dbTransport = transport; _dbTransportOwners = owners; _imagesDb = imagesDb; }
public ImagesController(ImagesDbContext context, IConfiguration config, ILogger <ImagesController> logger, IWebHostEnvironment env) { _db = context; _config = config; _logger = logger; _env = env; }
public ProductController(IProductRepository repository, IStockRepository stockRepository, IProductExtendedRepository productExtendedRepository, ICategoryRepository categoryRepository, ImagesDbContext context, IFilterConditionsProducts filterConditions) { _repository = repository; _stockRepository = stockRepository; _productExtendedRepository = productExtendedRepository; _categoryRepository = categoryRepository; _imagesDb = context; _filterConditions = filterConditions; }
public AdminController(IProductRepository repo, IStockRepository stockRepo, ImagesDbContext context, IEFContext <Transport> dbTransport, IVoucher dbVoucher, IEFContext <Location> dbLocation, IEFContext <Categories> dbCategories) { _repository = repo; _stockRepository = stockRepo; _imagesDb = context; _dbTransport = dbTransport; _dbVoucher = dbVoucher; _dbLocation = dbLocation; _dbCategories = dbCategories; }
public ProductController(IProductRepository repository, IStockRepository stockRepository, ImagesDbContext context, IFilterConditionsProducts filterConditions, IEFContext <Transport> dbTransport, IVoucher dbVoucher, IEFContext <Location> dbLocation, IEFContext <Categories> dbCategories) { _repository = repository; _stockRepository = stockRepository; _imagesDb = context; _filterConditions = filterConditions; _dbTransport = dbTransport; _dbVoucher = dbVoucher; _dbLocation = dbLocation; _dbCategories = dbCategories; }
public AdminController(IProductRepository repo, IEFUserRepository userRepository, IStockRepository stockRepo, IProductExtendedRepository productExtendedRepository, IOrderRepository orderRepository, ICategoryRepository categoryRepository, ImagesDbContext context, IFilterConditionsProducts filterConditions, ApplicationDbContext dbcontext) { _context = dbcontext; _productRepository = repo; _stockRepository = stockRepo; _productExtendedRepository = productExtendedRepository; _orderRepository = orderRepository; _categoryRepository = categoryRepository; _imagesDb = context; _filterConditions = filterConditions; _userRepository = userRepository; }
public void TestMappings() { var testImage = new Image { Description = "Test Image", Id = 9000, Path = "test.jpg", Rating = 5, Tags = { new Tag() { Id = 100500, Name = "TestRock" }, new Tag() { Id = 100501, Name = "TestMetal" } } }; var connection = InMemoryConnection(); using (var arrangeContext = new ImagesDbContext(connection, false)) { arrangeContext.Images.Add(testImage); arrangeContext.SaveChanges(); } using (var assertContext = new ImagesDbContext(connection, false)) { var savedImage = assertContext.Images.First(); Assert.AreEqual(testImage.Path, savedImage.Path); Assert.AreEqual(testImage.Description, savedImage.Description); Assert.AreEqual(testImage.Rating, savedImage.Rating); Assert.AreEqual(testImage.Tags.Count, savedImage.Tags.Count); Assert.That(savedImage.Tags.SequenceEqual(testImage.Tags)); } }
public ImagesController(ImagesDbContext context, IConfiguration config, ILogger <ImagesController> logger) { _db = context; _config = config; _logger = logger; }
public ImageRandomizer(ImagesDbContext db) => _db = db;
public ImageDescriptor(ImagesDbContext db) => _db = db;
public ProductController(ImagesDbContext context) { _imagesDb = context; }
public AdminController(ImagesDbContext context) { _imagesDb = context; }
public TransportOwnerController(IEFContext <TransportOwner> own, ImagesDbContext imagesDb) { _dbOwners = own; _imagesDb = imagesDb; }