public RailwayFunctional(ICatalogApiFunctional catalogApi,
                          IProductApiFunctional productApi,
                          IProductConverter productConverter)
 {
     this.catalogApi       = catalogApi;
     this.productApi       = productApi;
     this.productConverter = productConverter;
 }
 public Railway(ICatalogApi catalogApi,
                IProductApi productApi,
                IProductConverter productConverter)
 {
     this.catalogApi       = catalogApi;
     this.productApi       = productApi;
     this.productConverter = productConverter;
 }
Beispiel #3
0
        public void Setup()
        {
            _productManagerMock     = new Mock <IProductManager>();
            _recipeManagementMock   = new Mock <IRecipeManagement>();
            _workplanManagementMock = new Mock <IWorkplans>();

            _productConverter = new ProductConverter()
            {
                ProductManager     = _productManagerMock.Object,
                RecipeManagement   = _recipeManagementMock.Object,
                WorkplanManagement = _workplanManagementMock.Object,
            };
        }
 public ProductIndexBuilder(
     IAppConfig appConfig, ICatalogSystemMapper catalogSystem, IIndexSystemMapper indexSystem, IKeyLookup keyLookup,
     EntryConverter entryConverter, IOperationsWriter writer, IEnumerable <IProductsAppender> appenderPlugins, IProductConverter converterPlugin = null)
 {
     _appConfig       = appConfig;
     _catalogSystem   = catalogSystem;
     _indexSystem     = indexSystem;
     _keyLookup       = keyLookup;
     _entryConverter  = entryConverter;
     _writer          = writer;
     _converterPlugin = converterPlugin;
     _appenderPlugins = appenderPlugins.ToArray();
 }