Skip to content

Commit

Permalink
make domain setters private
Browse files Browse the repository at this point in the history
  • Loading branch information
radek00 committed Jan 16, 2024
1 parent 968731f commit dad7b32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions SecureSend.Domain/ValueObjects/SecureSendFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ namespace SecureSend.Domain.ValueObjects
public record SecureSendFile
{
public string DisplayFileName { get; }
public string RandomFileName { get; set; }
public string RandomFileName { get; }
public string ContentType { get; }
public long FileSize { get; set; }
public long FileSize { get; }

public SecureSendFile(string displayFileName, string contentType, long fileSize)
{
Expand Down
2 changes: 1 addition & 1 deletion SecureSend.Domain/ValueObjects/SecureSendIsViewed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public record SecureSendIsViewed
{
public bool Value { get; set; }
public bool Value { get; private set; }

public SecureSendIsViewed(bool value)
{
Expand Down
2 changes: 1 addition & 1 deletion SecureSend.Domain/ValueObjects/SecureSendUploadDate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public record SecureSendUploadDate
{
public DateTime Value { get; set; }
public DateTime Value { get; private set; }

public SecureSendUploadDate()
{
Expand Down
2 changes: 1 addition & 1 deletion SecureSend.Domain/ValueObjects/SecureSendUploadId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace SecureSend.Domain.ValueObjects
{
public record SecureSendUploadId
{
public Guid Value { get; set; }
public Guid Value { get; private set; }

public SecureSendUploadId(Guid value)
{
Expand Down

0 comments on commit dad7b32

Please sign in to comment.