Skip to content

Commit d0490f7

Browse files
committed
Enhance readability
1 parent 6ba5568 commit d0490f7

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

RealTimeWeatherMonitoringTest/Domain/Common/FixedEvaluatorCustomization.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
namespace RealTimeWeatherMonitoringTest.Domain.Common;
66

7+
/// <summary>
8+
/// Ensures that generated evaluators always return fixed values (true/false).
9+
/// Useful for testing evaluation logic for a bot.
10+
/// </summary>
711
public class FixedEvaluatorCustomization<TEvaluated> : ICustomization
812
{
913
private readonly bool _returnValue;

RealTimeWeatherMonitoringTest/Domain/Common/ReactiveBotControllerCustomization.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace RealTimeWeatherMonitoringTest.Domain.Common;
44

55
/// <summary>
6-
/// This customization ensures that generated BotControllers will always
7-
/// react DataChangeEventArgs (Except when data is null).
6+
/// Ensures that generated BotControllers will always
7+
/// react to DataChangeEventArgs (Except when data is null).
88
/// </summary>
99
public class ReactiveBotControllerCustomization<TEvaluated> : ICustomization
1010
{

RealTimeWeatherMonitoringTest/Domain/Models/TestData.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
using RealTimeWeatherMonitoringApp.Domain.Models;
2+
13
namespace RealTimeWeatherMonitoringTest.Domain.Models;
24

5+
/// <summary>
6+
/// Analogous to <see cref="WeatherData"/>
7+
/// </summary>
38
public class TestData
49
{
510
public int Field1 { get; }

RealTimeWeatherMonitoringTest/Infrastructure/Repository/BotRepositoryShould.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ public void GetAll_GetAllBotsFromBotInitializer(
1818
[Frozen] Mock<IBotInitializer<TestData>> botInitializerMock,
1919
BotRepository<TestData> botRepository)
2020
{
21-
botInitializerMock.Setup(i => i.InitializeAndGetAllBots()).Returns(initializedBots);
21+
botInitializerMock
22+
.Setup(i => i.InitializeAndGetAllBots())
23+
.Returns(initializedBots);
2224

2325
var bots = botRepository.GetAll();
2426

0 commit comments

Comments
 (0)