/// <summary> /// Initialises a new instance of the <see cref="GetPositionReportDataCommand"/> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="userIdentity">The user identity.</param> /// <param name="dateTimeService">The date-time service.</param> /// <param name="fundRepository">The fund repository.</param> /// <param name="valuationRepository">The valuation repository</param> /// <param name="orderManagementService">The order management service</param> /// <param name="forwardContractRepository">The forward Contract Repository</param> /// <param name="mfgiRepository">The MFGI Repository.</param> /// <param name="structureRepository">The fund structure repository</param> public GetPositionReportDataCommand( ILogger logger, IUserIdentity userIdentity, IDateTimeService dateTimeService, IFundRepository fundRepository, IValuationRepository valuationRepository, IOrderManagementService orderManagementService, IForwardContractRepository forwardContractRepository, IMfgiRepository mfgiRepository, IStructureRepository structureRepository) { Guard.IsNotNull(logger, "logger"); Guard.IsNotNull(userIdentity, "uderIdentity"); Guard.IsNotNull(dateTimeService, "dateTimeService"); Guard.IsNotNull(fundRepository, "fundRepository"); Guard.IsNotNull(valuationRepository, "valuationRepository"); Guard.IsNotNull(orderManagementService, "orderManagementService"); Guard.IsNotNull(forwardContractRepository, "forwardContractRepository"); Guard.IsNotNull(mfgiRepository, "mfgiRepository"); Guard.IsNotNull(structureRepository, "structureRepository"); this.logger = logger; this.userIdentity = userIdentity; this.dateTimeService = dateTimeService; this.fundRepository = fundRepository; this.valuationRepository = valuationRepository; this.orderManagementService = orderManagementService; this.forwardContractRepository = forwardContractRepository; this.mfgiRepository = mfgiRepository; this.structureRepository = structureRepository; }
public ValuationService(IEndOfDayPriceService endOfDayPriceService, ICurrencyRateService currencyRateService, IListingService listingService, IValuationRepository valuationRepository, IBuyTradeRepository buyTradeRepository, ISellTradeRepository sellTradeRepository, ILogger <ValuationService> logger ) { this.endOfDayPriceService = endOfDayPriceService; this.currencyRateService = currencyRateService; this.listingService = listingService; this.valuationRepository = valuationRepository; this.buyTradeRepository = buyTradeRepository; this.sellTradeRepository = sellTradeRepository; _logger = logger; }