public MockWarehouseLogic(IWarehouseRepository warehouseRepository, ITruckRepository truckRepository, IHopRepository hopRepository, IParcelRepository parcelRepository) { _warehouseRepository = warehouseRepository; _truckRepository = truckRepository; _hopRepository = hopRepository; _parcelRepository = parcelRepository; }
public MockTrackingLogic(IParcelRepository parcelRepository, IHopRepository hopRepository, IWarehouseRepository warehouseRepository, ITruckRepository truckRepository) { _parcelRepository = parcelRepository; _hopRepository = hopRepository; _warehouseRepository = warehouseRepository; _truckRepository = truckRepository; }
public WarehouseManagementLogic(IHopRepository sqlRepo, IMapper mapper, ILogger <WarehouseManagementLogic> logger) { _sqlRepo = sqlRepo; _mapper = mapper; _logger = logger; _logger.LogTrace("created WarehouseManagementLogic"); }
public void TextFixtureSetup() { AutoMapperConfiguration.Configure(); _hopElasticsearch = new HopElasticsearch(); _hopRepository = new HopRepository(); // _hopService = new BeerService(_beerElasticsearch,_hopElasticsearch,_userService,_breweryService); }
public HopService(IHopRepository hopRepository, IHopElasticsearch hopElasticsearch, IBeerStyleRepository beerStyleRespository, IBeerStyleElasticsearch beerStyleElasticsearch) { _beerStyleElasticsearch = beerStyleElasticsearch; _beerStyleRepository = beerStyleRespository; _hopElasticsearch = hopElasticsearch; _hopRepository = hopRepository; }
public void Setup() { DbContextOptions <SqlContext> options = new DbContextOptionsBuilder <SqlContext>() .UseInMemoryDatabase(databaseName: TestContext.CurrentContext.Test.Name) .Options; _dal = new SqlHopRepository(new SqlContext(options), new LoggerFactory().CreateLogger <SqlHopRepository>()); }
public WarehouseLogic(IWarehouseRepository warehouseRepository, ITruckRepository truckRepository, IHopRepository hopRepository, IParcelRepository parcelRepository) { _warehouseRepository = warehouseRepository; _truckRepository = truckRepository; _hopRepository = hopRepository; _parcelRepository = parcelRepository; _wVal = new WarehouseValidator(); _tVal = new TruckValidator(); }
public SenderLogic(IParcelRepository sqlRepoParcel, IHopRepository sqlRepoHop, IMapper mapper, IGeocoderAgent agent, ILogger <SenderLogic> logger) { _sqlRepoParcel = sqlRepoParcel; _sqlRepoHop = sqlRepoHop; _mapper = mapper; _agent = agent; _logger = logger; _logger.LogTrace("created SenderLogic"); }
public StaffLogic(IParcelRepository sqlRepoParcel, IHopRepository sqlRepoHop, IWebhookRepository webrep, IMapper mapper, ILogger <StaffLogic> logger, HttpClient client) { _sqlRepoParcel = sqlRepoParcel; _sqlRepoHop = sqlRepoHop; _webrep = webrep; _mapper = mapper; _logger = logger; _client = client; _logger.LogTrace("created StaffLogic"); }
public TrackingLogic(IParcelRepository parcelRepository, IHopRepository hopRepository, IWarehouseRepository warehouseRepository, ITruckRepository truckRepository) { _pVal = new ParcelValidator(); _hVal = new HopArrivalValidator(); _parcelRepository = parcelRepository; _hopRepository = hopRepository; _warehouseRepository = warehouseRepository; _truckRepository = truckRepository; }
public BeerStyleService(IBeerStyleElasticsearch beerStyleElasticsearch, IBeerStyleRepository beerStyleRepository, IHopElasticsearch hopElasticsearch, IHopRepository hopRepository, ILogger <BeerStyleService> logger) { _beerStyleElasticsearch = beerStyleElasticsearch; _beerStyleRepository = beerStyleRepository; _hopElasticsearch = hopElasticsearch; _hopRepository = hopRepository; _logger = logger; }
public LogisticsPartnerLogic(IMapper mapper, IParcelRepository parcelRepository, IWarehouseRepository wareHouseRepository, IHopRepository hopRepository, IGeoCodingAgent geoCodingAgent, IRouteCalculator routeCalculator, ILogger <LogisticsPartnerLogic> logger) { this.mapper = mapper; this.parcelRepository = parcelRepository; this.geoCodingAgent = geoCodingAgent; this.hopRepository = hopRepository; this.wareHouseRepository = wareHouseRepository; this.routeCalculator = routeCalculator; this.logger = logger; }
public void Init() { TestUtil.FlushRedisStore(); TestUtil.DeleteDataInDatabase(); TestUtil.InsertDataDatabase(); AutoMapperConfiguration.Configure(); _context = new MicrobrewitContext(); _repository = new HopRepository(); _elasticsearch = new HopElasticsearch(); _service = new HopService(_repository, _elasticsearch); _controller = new HopController(_service); }
public RecipientLogic(IMapper mapper, IParcelRepository parcelRepository, ILogger <RecipientLogic> logger, IGeoCodingAgent geoCodingAgent, IRouteCalculator routeCalculator , IWarehouseRepository wareHouseRepository, IHopRepository hopRepository, IWebhookRepository webhookRepository) { this.mapper = mapper; this.parcelRepository = parcelRepository; this.logger = logger; this.hopRepository = hopRepository; this.webhookRepository = webhookRepository; this.geoCodingAgent = geoCodingAgent; this.wareHouseRepository = wareHouseRepository; this.routeCalculator = routeCalculator; }
public void Init() { TestUtil.FlushRedisStore(); TestUtil.DeleteDataInDatabase(); TestUtil.InsertDataDatabase(); AutoMapperConfiguration.Configure(); _context = new MicrobrewitContext(); _repository = new HopRepository(); _elasticsearch = new HopElasticsearch(); _service = new HopService(_repository,_elasticsearch); _controller = new HopController(_service); }
public BeerXmlResolver(IOptions <DatabaseSettings> databaseSettings, IOptions <ElasticSearchSettings> elasticSearchSettings, IFermentableElasticsearch fermentableElasticsearch, IHopElasticsearch hopElasticsearch, IHopRepository hopRepository, IOtherElasticsearch otherElasticsearch, IYeastElasticsearch yeastElasticsearch, IOtherRepository otherRepository, IOtherService otherService) { _databaseSettings = databaseSettings; _elasticSearchSettings = elasticSearchSettings; _fermentableElasticsearch = fermentableElasticsearch; _hopElasticsearch = hopElasticsearch; _hopRepository = hopRepository; _otherElasticsearch = otherElasticsearch; _yeastElasticsearch = yeastElasticsearch; _otherRepository = otherRepository; _otherService = otherService; }
public HopService(IHopRepository hopRepository, IHopElasticsearch hopElasticsearch) { _hopRepository = hopRepository; _hopElasticsearch = hopElasticsearch; }
public HopService(IHopRepository hopRepository,IHopElasticsearch hopElasticsearch) { _hopRepository = hopRepository; _hopElasticsearch = hopElasticsearch; }
public void TestFixureSetUp() { _hopRepository = new HopDapperRepository(); }