MockCollectionRequest
Mocked DaffCollectionRequest
object.
API
class MockCollectionRequest implements DaffCollectionRequest {
currentPage: faker.datatype.number({ min: 1, max: 100 })
appliedSortDirection: faker.helpers.arrayElement([DaffSortDirectionEnum.Ascending, DaffSortDirectionEnum.Descending])
pageSize: faker.datatype.number({ min: 1, max: 100 })
appliedSortOption: faker.random.word()
filterRequests: this.createFilterRequests()
}
Properties
Name | Type | Description |
---|---|---|
currentPage | faker.datatype.number({ min: 1, max: 100 }) | |
appliedSortDirection | faker.helpers.arrayElement([DaffSortDirectionEnum.Ascending, DaffSortDirectionEnum.Descending]) | |
pageSize | faker.datatype.number({ min: 1, max: 100 }) | |
appliedSortOption | faker.random.word() | |
filterRequests | this.createFilterRequests() |