public StockGateway(IStockService stockService, ModelToViewModelMapper modelToViewModelMapper, ViewModelToModelMapper viewModelToModelMapper, GatewayCache cache) { Guard.AgainstNull(() => stockService, () => modelToViewModelMapper, () => viewModelToModelMapper, () => cache); _stockService = stockService; _modelToViewModelMapper = modelToViewModelMapper; _viewModelToModelMapper = viewModelToModelMapper; _cache = cache; }
public ModelToViewModelMapper(GatewayCache cache) { Guard.AgainstNull(() => cache); _cache = cache; }