Become a patron and get access to source code and exclusive live streams: Don't let your code be at the mercy of the system clock. Join us and learn how to design time-independent domain models! In this video, we explore the role of time in domain modeling. Time is of the essence in many business domains. As developers, however, we sometimes fall into the trap of building current time as an integral part of our domain models. Such a design is below par, to say the least! A domain model that depends on a static service returning current time is hard to test and use. Writing time-dependent and time-sensitive unit tests for such a domain model is often challenging, if not impossible. Worse yet, "what-if analysis" features are often impossible to build into such a domain model. Therefore, we will explore an alternate design, where we inject an abstract time service into the domain model. We are covering topics like using relative time, freezing time during the request execution, decoupling time from behavior, and designing for testability. By the end of this video, you will know how to build robust domain models that can handle system time correctly, supporting more versatile features and providing a better user experience. Thank you so much for watching! Please like, comment & share this video as it helps me a ton!! Don't forget to subscribe to my channel for more amazing videos and make sure to hit the bell icon to never miss any updates.🔥❤️ ✅🔔 Subscribe ► ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ⭐ CONNECT WITH ME 📱👨 🌐Buy me a Coffee ► 🗳 Pluralsight Courses ► 📸 Udemy Courses ► 📸 Join me on Twitter ► 🌐 Read my Articles ► 📸 Join me on LinkedIn ► For collaboration or any queries: ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ 👨 About Me 👨 Hi, I’m Zoran, I have more than 20 years of experience as a software developer, architect, team lead, and more. I have been programming in C# since its inception in the early 2000s. Since 2017 I have started publishing professional video courses at Pluralsight and Udemy and by this point, there are over 100 hours of the highest-quality videos you can watch on those platforms. On my YouTube channel, you can find shorter video forms focused on clarifying practical issues in coding, design, and architecture of .NET applications. ❤️ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ⚡️RIGHT NOTICE: The Copyright Laws of the United States recognize a “fair use” of copyrighted content. Section 107 of the U.S. Copyright Act states: “Notwithstanding the provisions of sections 106 and 106A, the fair use of a copyrighted work, including such use by reproduction in copies or phono records or by any other means specified by that section, for purposes such as criticism, comment, news reporting, teaching (including multiple copies for classroom use), scholarship, or research, is not an infringement of copyright." This video and our youtube channel, in general, may contain certain copyrighted works that were not specifically authorized to be used by the copyright holder(s), but which we believe in good faith are protected by federal law and the Fair use doctrine for one or more of the reasons noted above. ⭐For copyright or any inquiries, please contact us via a comment #dotnet #csharp











