A new Currency
datatype for modeling currencies in a business domain.
For a list of all changes/updates in this release, view the change log.
One of the interfaces in commons is ICurrentDateTime
. It's default implementation is DefaultCurrentDateTime
.
It is recommended that this interface and factory be used when accessing the systems's current date/time. This allows
you to mock the date/time returned.
public class MyService
{
ICurrentDateTime datetimeFactory;
public MyService(ICurrentDateTime datetimeFactory)
{
this.datetimeFactory = datetimeFactory;
}
public void dowork()
{
Datetime now = datetimeFactory.GetCurrentUtcDateTime();
// do some work
}
}
- NetStandard2.0
- Net452
Building from source and running unit tests requires a Windows machine with:
- .Net 6.0 SDK
- .Net Framework 4.5.2 Developer Pack
Issues are tracked on GitHub. Anyone is welcome to file a bug, an enhancement request, or ask a general question. We ask that bug reports include:
- A detailed description of the problem
- Steps to reproduce
- Expected results
- Actual results
- Version of the package
- Version of the .Net runtime
Contributions are welcome! Please open an issue first so that your proposed changes can be discussed.
Milestone Commons Library is licensed under the MIT License.