Skip to content

Commit eff8969

Browse files
Add ProductPerformanceQuery to test infrastructure
Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
1 parent 3e757d2 commit eff8969

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

EstateManagementUI.BusinessLogic.Tests/MediatorTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public MediatorTests() {
4444
this.Requests.Add(TestData.GetTopOperatorDataQuery);
4545
this.Requests.Add(TestData.GetBottomOperatorDataQuery);
4646
this.Requests.Add(TestData.GetLastSettlementQuery);
47+
this.Requests.Add(TestData.GetProductPerformanceQuery);
4748

4849
// Commands
4950
this.Requests.Add(TestData.AddNewOperatorCommand);

EstateManagementUI.Testing/TestData.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ public static class TestData {
9090

9191
public static Queries.GetLastSettlementQuery GetLastSettlementQuery => new(CorrelationId, AccessToken, EstateId);
9292

93+
public static Queries.GetProductPerformanceQuery GetProductPerformanceQuery => new(CorrelationId, AccessToken, EstateId, DateTime.Now.AddDays(-30), DateTime.Now);
94+
9395
public static Commands.AddMerchantCommand AddNewMerchantCommand => new(CorrelationId, AccessToken, EstateId, CreateMerchantModel(BusinessLogic.Models.SettlementSchedule.Immediate));
9496

9597
public static Commands.UpdateMerchantCommand UpdateMerchantCommand => new(CorrelationId, AccessToken, EstateId, Merchant1Id, new UpdateMerchantModel {

0 commit comments

Comments
 (0)