Dotnet, Development, C Sharp Programming, Csharp, Microsoft.
DemoService(_timeProviderMock.Object); } [Theory] [MemberData(nameof(TimeOfDayTestCases))] public void GetTimeOfDay_ShouldReturnExpectedTimeOfDay( DateTimeOffset date, string expectedMessage) { // Arrange _timeProviderMock.Setup(c => c.GetUtcNow()).Returns(date); // Act var result =