Holds a date range.
More...
|
| DateRange (DateTime from, DateTime to) |
| Constructs a new DateRange object, ensuring that {from} is less than {to}.
|
bool | InRange (DateTime value) |
| Tests whether a provided DateTime value is within the stored range.
|
|
DateTime | From [get] |
| Start of the date range.
|
DateTime | To [get] |
| End of the date range.
|
◆ DateRange()
PeanutButter.RandomGenerators.DateRange.DateRange |
( |
DateTime | from, |
|
|
DateTime | to ) |
Constructs a new DateRange object, ensuring that {from} is less than {to}.
- Parameters
-
from | Date to start the range |
to | Date for the end of the range |
◆ InRange()
bool PeanutButter.RandomGenerators.DateRange.InRange |
( |
DateTime | value | ) |
|
Tests whether a provided DateTime value is within the stored range.
- Parameters
-
- Returns
- True if the value falls within the date range
The documentation for this class was generated from the following file:
- source/TestUtils/PeanutButter.RandomGenerators/DateRange.cs