| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method VerifySalesDemandInPeriod ( |  |   SalesDemandInPeriod salesDemandInPeriod, |  |   Date expectedStartDate, |  |   Date expectedEndDate, |  |   Real expectedQuantity |  | ) |  | { |  |   Description: "Verify sales demand in period's start and end date with the correct apportioned quantity." |  |   TextBody: |  |   [* |  |     errorMessage := this.GetErrorMessageSDIP( salesDemandInPeriod, 'Expected start = ' + expectedStartDate.Format( 'D-M-yy' ) ); |  |     this.Run().AssertEqual( expectedStartDate, salesDemandInPeriod.StartDate(), errorMessage ); |  |      |  |     errorMessage := this.GetErrorMessageSDIP( salesDemandInPeriod, 'Expected end = ' + expectedEndDate.Format( 'D-M-yy' ) ); |  |     this.Run().AssertEqual( expectedEndDate, salesDemandInPeriod.EndDate(), errorMessage ); |  |      |  |     errorMessage := this.GetErrorMessageSDIP( salesDemandInPeriod, 'Expected quantity = ' + [String]expectedQuantity ); |  |     this.Run().AssertEqual( expectedQuantity, salesDemandInPeriod.Quantity(), errorMessage ); |  |   *] |  |   InterfaceProperties { Accessibility: 'Module' } |  | } | 
 |