コード例 #1
0
 public MockWarehouseLogic(IWarehouseRepository warehouseRepository, ITruckRepository truckRepository, IHopRepository hopRepository, IParcelRepository parcelRepository)
 {
     _warehouseRepository = warehouseRepository;
     _truckRepository     = truckRepository;
     _hopRepository       = hopRepository;
     _parcelRepository    = parcelRepository;
 }
コード例 #2
0
 public MockTrackingLogic(IParcelRepository parcelRepository, IHopRepository hopRepository, IWarehouseRepository warehouseRepository, ITruckRepository truckRepository)
 {
     _parcelRepository    = parcelRepository;
     _hopRepository       = hopRepository;
     _warehouseRepository = warehouseRepository;
     _truckRepository     = truckRepository;
 }
コード例 #3
0
 public WarehouseManagementLogic(IHopRepository sqlRepo, IMapper mapper, ILogger <WarehouseManagementLogic> logger)
 {
     _sqlRepo = sqlRepo;
     _mapper  = mapper;
     _logger  = logger;
     _logger.LogTrace("created WarehouseManagementLogic");
 }
コード例 #4
0
        public void TextFixtureSetup()
        {
            AutoMapperConfiguration.Configure();

            _hopElasticsearch = new HopElasticsearch();
            _hopRepository    = new HopRepository();
            // _hopService = new BeerService(_beerElasticsearch,_hopElasticsearch,_userService,_breweryService);
        }
コード例 #5
0
 public void TextFixtureSetup()
 {
     AutoMapperConfiguration.Configure();
    
     _hopElasticsearch = new HopElasticsearch();
     _hopRepository = new HopRepository();
    // _hopService = new BeerService(_beerElasticsearch,_hopElasticsearch,_userService,_breweryService);
 }
コード例 #6
0
 public HopService(IHopRepository hopRepository, IHopElasticsearch hopElasticsearch, IBeerStyleRepository beerStyleRespository,
                   IBeerStyleElasticsearch beerStyleElasticsearch)
 {
     _beerStyleElasticsearch = beerStyleElasticsearch;
     _beerStyleRepository    = beerStyleRespository;
     _hopElasticsearch       = hopElasticsearch;
     _hopRepository          = hopRepository;
 }
コード例 #7
0
        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>());
        }
コード例 #8
0
 public WarehouseLogic(IWarehouseRepository warehouseRepository, ITruckRepository truckRepository, IHopRepository hopRepository, IParcelRepository parcelRepository)
 {
     _warehouseRepository = warehouseRepository;
     _truckRepository     = truckRepository;
     _hopRepository       = hopRepository;
     _parcelRepository    = parcelRepository;
     _wVal = new WarehouseValidator();
     _tVal = new TruckValidator();
 }
コード例 #9
0
ファイル: SenderLogic.cs プロジェクト: JoeNeu/parcel-tracker
 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");
 }
コード例 #10
0
ファイル: StaffLogic.cs プロジェクト: JoeNeu/parcel-tracker
 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");
 }
コード例 #11
0
        public TrackingLogic(IParcelRepository parcelRepository, IHopRepository hopRepository, IWarehouseRepository warehouseRepository, ITruckRepository truckRepository)
        {
            _pVal = new ParcelValidator();
            _hVal = new HopArrivalValidator();

            _parcelRepository    = parcelRepository;
            _hopRepository       = hopRepository;
            _warehouseRepository = warehouseRepository;
            _truckRepository     = truckRepository;
        }
コード例 #12
0
 public BeerStyleService(IBeerStyleElasticsearch beerStyleElasticsearch,
                         IBeerStyleRepository beerStyleRepository, IHopElasticsearch hopElasticsearch, IHopRepository hopRepository,
                         ILogger <BeerStyleService> logger)
 {
     _beerStyleElasticsearch = beerStyleElasticsearch;
     _beerStyleRepository    = beerStyleRepository;
     _hopElasticsearch       = hopElasticsearch;
     _hopRepository          = hopRepository;
     _logger = logger;
 }
コード例 #13
0
ファイル: LogisticsPartnerLogic.cs プロジェクト: Jawohi/src
 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;
 }
コード例 #14
0
 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);
 }
コード例 #15
0
ファイル: RecipientLogic.cs プロジェクト: Jawohi/src
 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;
 }
コード例 #16
0
        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);

        }
コード例 #17
0
 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;
 }
コード例 #18
0
 public HopService(IHopRepository hopRepository, IHopElasticsearch hopElasticsearch)
 {
     _hopRepository    = hopRepository;
     _hopElasticsearch = hopElasticsearch;
 }
コード例 #19
0
 public HopService(IHopRepository hopRepository,IHopElasticsearch hopElasticsearch)
 {
     _hopRepository = hopRepository;
     _hopElasticsearch = hopElasticsearch;
 }
コード例 #20
0
 public void TestFixureSetUp()
 {
     _hopRepository = new HopDapperRepository();
 }
コード例 #21
0
 public void TestFixureSetUp()
 {
     _hopRepository = new HopDapperRepository();
 }