/// <summary> /// The save. /// </summary> /// <param name="spoofing"> /// The spoofing. /// </param> public async Task SaveAsync(ISpoofingJudgement spoofing) { if (spoofing == null) { this.logger?.LogError("Spoofing Judgement was null"); } await Task.CompletedTask; }
/// <summary> /// The judgement. /// </summary> /// <param name="spoofing"> /// The spoofing. /// </param> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task Judgement(ISpoofingJudgement spoofing) { if (spoofing == null) { this.logger?.LogError("Spoofing Judgement was null"); return; } await this.judgementRepository.SaveAsync(spoofing); // judgement is also a rule breach var projectedBreach = (ISpoofingRuleBreach)null; this.ruleViolationService.AddRuleViolation(projectedBreach); }
public void Setup() { this.judgementRepository = A.Fake <IJudgementRepository>(); this.highProfitJudgementContext = A.Fake <IHighProfitJudgementContext>(); this.cancelledOrderJudgementContext = A.Fake <ICancelledOrderJudgement>(); this.highVolumeJudgementContext = A.Fake <IHighVolumeJudgement>(); this.layeringJudgementContext = A.Fake <ILayeringJudgement>(); this.placingOrdersWithNoIntentJudgementContext = A.Fake <IPlacingOrdersWithNoIntentToExecuteJudgement>(); this.rampingJudgementContext = A.Fake <IRampingJudgement>(); this.markingTheCloseJudgementContext = A.Fake <IMarkingTheCloseJudgement>(); this.spoofingJudgementContext = A.Fake <ISpoofingJudgement>(); this.highProfitJudgementMapper = A.Fake <IHighProfitJudgementMapper>(); this.fixedIncomeProfitJudgementMapper = A.Fake <IFixedIncomeHighProfitJudgementMapper>(); this.fixedIncomeProfitJudgementContext = A.Fake <IFixedIncomeHighProfitJudgementContext>(); this.fixedIncomeHighVolumeJudgementMapper = A.Fake <IFixedIncomeHighVolumeJudgementMapper>(); this.fixedIncomeHighVolumeJudgementContext = A.Fake <IFixedIncomeHighVolumeJudgementContext>(); this.ruleViolationService = A.Fake <IRuleViolationService>(); this.logger = A.Fake <ILogger <JudgementService> >(); }