// NLog: Setup NLog for Dependency injectionbuilder.Logging.ClearProviders();builder.Logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);builder.Host.UseNLog();
[Test] public async Task TargetServiceSetStartDateAsToday_EqualProcessTest() { var mockRepo = new Mock<IDateTime>(); mockRepo.Setup(x => x.Now).Returns(DateTime.UtcNow); var rule = new TargetServiceSetStartDateAsToday(mockRepo.Object); var command = GetCommandWithReferenceTarget(); await rule.ProcessAsync(command); Assert.AreEqual(command.StartDate, DateOnly.FromDateTime(mockRepo.Object.Now)); }