예제 #1
0
 public DepositGateway(IDepositService depositService, IDividendService dividendService, 
     ModelToViewModelMapper modelToViewModelMapper, ViewModelToModelMapper viewModelToModelMapper)
 {
     Guard.AgainstNull(() => depositService, () => dividendService, () => modelToViewModelMapper, () => viewModelToModelMapper);
     _depositService = depositService;
     _dividendService = dividendService;
     _modelToViewModelMapper = modelToViewModelMapper;
     _viewModelToModelMapper = viewModelToModelMapper;
 }
예제 #2
0
 public StockGateway(IStockService stockService, 
     ModelToViewModelMapper modelToViewModelMapper, ViewModelToModelMapper viewModelToModelMapper,
     GatewayCache cache)
 {
     Guard.AgainstNull(() => stockService, () => modelToViewModelMapper, () => viewModelToModelMapper, () => cache);
     _stockService = stockService;
     _modelToViewModelMapper = modelToViewModelMapper;
     _viewModelToModelMapper = viewModelToModelMapper;
     _cache = cache;
 }