79635474

Date: 2025-05-23 12:12:32
Score: 1.5
Natty:
Report link

how about this

using (Shim shim = Shim.Replace(() => DateTime.Today)
                       .With(() => new DateTime(2019, 07, 20)))
{
   
    var today = DateTime.Today; //  2019-07-20
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): how
  • Low reputation (1):
Posted by: stefan