Skip to content

Commit cd8de1c

Browse files
committed
Fixing warnings
1 parent 5fb17fa commit cd8de1c

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

Integration/DotNET.InProcess/for_EventSequence/when_appending_event_with_registered_migration/ContractSigned.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Cratis.Chronicle.InProcess.Integration.for_EventSequence.when_appendin
77

88
/// <summary>
99
/// Generation 1 of <see cref="ContractSigned"/>. Has only a contract identifier.
10-
/// Generation 2 adds a <see cref="Status"/> property, defaulting to <c>pending</c> for events
10+
/// Generation 2 adds a <c>Status</c> property, defaulting to <c>pending</c> for events
1111
/// stored before the property existed.
1212
/// </summary>
1313
/// <param name="ContractId">The contract identifier.</param>

Integration/DotNET.InProcess/for_EventSequence/when_appending_event_with_registered_migration/ContractSignedMigrator.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ public class ContractSignedMigrator : IEventTypeMigrationFor<ContractSigned>
2121

2222
/// <inheritdoc/>
2323
public void Upcast(IEventMigrationBuilder builder) =>
24-
builder.Properties(pb =>
25-
{
26-
pb.DefaultValue("status", "pending");
27-
});
24+
builder.Properties(pb => pb.DefaultValue("status", "pending"));
2825

2926
/// <inheritdoc/>
3027
public void Downcast(IEventMigrationBuilder builder)

Source/Clients/DotNET.Specs/Events/for_EventTypes/when_registering/and_event_type_has_complete_migration_chain.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
namespace Cratis.Chronicle.Events.for_EventTypes.when_registering;
88

9-
[EventType(generation: 2)]
10-
file record Gen2TestEventWithValidChain(string Name);
11-
129
public class and_event_type_has_complete_migration_chain : given.all_dependencies
1310
{
11+
[EventType(generation: 2)]
12+
record Gen2TestEventWithValidChain(string Name);
13+
1414
EventTypes _subject;
1515

1616
void Establish()

Source/Clients/DotNET.Specs/Events/for_EventTypes/when_registering/and_event_type_is_generation_1.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
namespace Cratis.Chronicle.Events.for_EventTypes.when_registering;
77

8-
[EventType]
9-
file record Gen1TestEvent(string Name);
10-
118
public class and_event_type_is_generation_1 : given.all_dependencies
129
{
10+
[EventType]
11+
record Gen1TestEvent(string Name);
12+
1313
EventTypes _subject;
1414

1515
void Establish()

Source/Kernel/Core/Services/EventTypes/EventTypes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public async Task Register(RegisterEventTypesRequest request)
2727
#if DEVELOPMENT
2828
var skipValidation = request.DisableValidation;
2929
#else
30-
var skipValidation = false;
30+
const bool skipValidation = false;
3131
#endif
3232
if (!skipValidation)
3333
{

0 commit comments

Comments
 (0)