Skip to content

Commit dcd4099

Browse files
committed
added setters for DTOs that Resharper removed them for.
1 parent 366d387 commit dcd4099

File tree

6 files changed

+13
-20
lines changed

6 files changed

+13
-20
lines changed

src/Server/Coderr.Server.Api/Core/Accounts/Events/AccountRegistered.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System;
2-
using DotNetCqs;
2+
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Local
33

44
namespace codeRR.Server.Api.Core.Accounts.Events
55
{
@@ -31,7 +31,8 @@ protected AccountRegistered()
3131
/// <summary>
3232
/// Account id (primary key).
3333
/// </summary>
34-
public int AccountId { get; }
34+
35+
public int AccountId { get; private set; }
3536

3637
/// <summary>
3738
/// The registered user is a system administrator
@@ -47,6 +48,6 @@ protected AccountRegistered()
4748
/// <summary>
4849
/// User name as entered by the user.
4950
/// </summary>
50-
public string UserName { get; }
51+
public string UserName { get; private set; }
5152
}
5253
}

src/Server/Coderr.Server.Api/Core/ApiKeys/Commands/EditApiKey.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System;
2-
using DotNetCqs;
2+
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Local
33

44
namespace codeRR.Server.Api.Core.ApiKeys.Commands
55
{
@@ -41,6 +41,6 @@ protected EditApiKey()
4141
/// <summary>
4242
/// Key id
4343
/// </summary>
44-
public int Id { get; }
44+
public int Id { get; private set; }
4545
}
4646
}

src/Server/Coderr.Server.Api/Core/Applications/Events/ApplicationCreated.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using DotNetCqs;
3+
// ReSharper disable All
34

45
namespace codeRR.Server.Api.Core.Applications.Events
56
{

src/Server/Coderr.Server.Api/Core/Incidents/Commands/ReOpenIncident.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System;
2-
using DotNetCqs;
2+
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Local
33

44
namespace codeRR.Server.Api.Core.Incidents.Commands
55
{
@@ -29,7 +29,7 @@ protected ReOpenIncident()
2929
/// <summary>
3030
/// Incident to reopen
3131
/// </summary>
32-
public int IncidentId { get; }
32+
public int IncidentId { get; private set; }
3333

3434
/// <summary>
3535
/// User requesting item to be reopened.

src/Server/Coderr.Server.ReportAnalyzer/Domain/Reports/ErrorReportEntity.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Security.Claims;
5-
using codeRR.Server.ReportAnalyzer.Domain.Incidents;
5+
// ReSharper disable AutoPropertyCanBeMadeGetOnly.Local
66

77
namespace codeRR.Server.ReportAnalyzer.Domain.Reports
88
{
@@ -62,17 +62,17 @@ protected ErrorReportEntity()
6262
/// <summary>
6363
/// Gets or sets id from the client library
6464
/// </summary>
65-
public string ClientReportId { get; }
65+
public string ClientReportId { get; private set; }
6666

6767
/// <summary>
6868
/// Context collection
6969
/// </summary>
70-
public ErrorReportContext[] ContextInfo { get; }
70+
public ErrorReportContext[] ContextInfo { get; private set; }
7171

7272
/// <summary>
7373
/// When this entity was created (in the server)
7474
/// </summary>
75-
public DateTime CreatedAtUtc { get; }
75+
public DateTime CreatedAtUtc { get; private set; }
7676

7777
/// <summary>
7878
/// Thrown exception

src/Server/Coderr.Server.SqlServer/Tools/ICustomerIdPrincipal.cs

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)