예제 #1
0
        public GetStockDetails(IStockService stockService, string symbol, IFutureValueSetter <StockDetailModel> detailModel)
        {
            if (string.IsNullOrEmpty(symbol))
            {
                throw new ArgumentNullException("symbol");
            }

            this.symbol       = symbol;
            this.detailModel  = detailModel;
            this.stockService = stockService;
        }
 public static IActionBuilder GetDetails(this IActionBuilder builder, StockSearchModel searchModel, IFutureValueSetter<StockDetailModel> detailModel)
 {
     return builder.Execute<IGetStockDetails>(new { symbol = searchModel.ToSymbol(), detailModel });
 }
 public static IActionBuilder GetDetails(this IActionBuilder builder, StockSearchModel searchModel, IFutureValueSetter <StockDetailModel> detailModel)
 {
     return(builder.Execute <IGetStockDetails>(new { symbol = searchModel.ToSymbol(), detailModel }));
 }