evolutionary-architecture / evolutionary-architecture-by-example

Navigate the complex landscape of .NET software architecture with our step-by-step, story-like guide. Unpack the interplay between modular monoliths, microservices, domain-driven design, and various architectural patterns. Go beyond the one-size-fits-all solutions and understand how to blend these approaches based on your unique needs.
MIT License
1.55k stars 191 forks source link

Pass date to annex rule instead of explicit usage of DateTimeOffset.UtcNow #104

Closed meaboutsoftware closed 5 months ago

meaboutsoftware commented 5 months ago

This PR contains changes that allow us to simplify unit testing by passing date instead of using it directly inside the rule. This way we can use time provider abstraction and fake it in our tests.

Additionally, there are changes related to renaming.