public void Build_RuleCtx_Null_Throws_Exception() { var factory = new EquityRuleWashTradeFactory( this._currencyConverterService, this._clustering, this._orderFilterService, this._equityFactory, this._fixedIncomeFactory, this._logger, this._tradingHistoryLogger); Assert.Throws <ArgumentNullException>( () => factory.Build(this._equitiesParameters, null, this._alertStream, RuleRunMode.ForceRun)); }
public void Build_Returns_A_WashTrade_Rule() { var factory = new EquityRuleWashTradeFactory( this._currencyConverterService, this._clustering, this._orderFilterService, this._equityFactory, this._fixedIncomeFactory, this._logger, this._tradingHistoryLogger); var result = factory.Build( this._equitiesParameters, this._ruleCtx, this._alertStream, RuleRunMode.ForceRun); Assert.IsNotNull(result); Assert.IsInstanceOf <WashTradeRule>(result); }