BusinessDateServiceFixture
serves to interact with the mock business date provider by
setting business dates on it.
Tests may use the BusinessDateServiceFixture
in the following way:
dateProvider.tradeDate = '20110622'
- will set tradeDate to 20110622 on mock business date providerdateProvider.transactionDate = '20110622'
- will set transactionDate to 20110622 on mock business date providerdateProvider.settlementDate = '20110622'
- will set settlementDate to 20110622 on mock business date providerdateProvider.tenor = '1M'
- will set tenor for a settlementDate to 1M on mock business date providerdateProvider.businessDateIsValid = 'true'
- will set isValidBusinessDay to true on mock business date providerdateProvider.isValidBusinessDay
is deprecated, use dateProvider.businessDateIsValid instead.
Attributes | Name and Description |
---|---|
|
caplin.fx.testing.BusinessDateServiceFixture()
Constructs a |
Attributes | Name and Description |
---|---|
|
void
setBusinessDateServiceStub(caplin.fx.testing.BusinessDateServiceStub oBusinessDateServiceStub)
|
►
caplin.fx.testing.BusinessDateServiceFixture()
Constructs a caplin.fx.testing.BusinessDateServiceFixture
.
►
void
setBusinessDateServiceStub(caplin.fx.testing.BusinessDateServiceStub oBusinessDateServiceStub)
caplin.fx.testing.BusinessDateServiceStub | oBusinessDateServiceStub | the mock business date provider which provides simulated business dates. Required. |