refactor(ModifyDocStatusCommandBase): remove ChangedWhen-property
This commit is contained in:
@@ -5,11 +5,6 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public record CreateDocStatusCommand : ModifyDocStatusCommandBase
|
public record CreateDocStatusCommand : ModifyDocStatusCommandBase
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Gets timestamp when this record was added. Returns null.
|
|
||||||
/// </summary>
|
|
||||||
public override DateTime? ChangedWhen => null;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets timestamp when this record was added. Returns the StatusChangedWhen value.
|
/// Gets timestamp when this record was added. Returns the StatusChangedWhen value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -32,11 +32,6 @@ public abstract record ModifyDocStatusCommandBase
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime StatusChangedWhen { get; } = DateTime.Now;
|
public DateTime StatusChangedWhen { get; } = DateTime.Now;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets timestamp when this record was added.
|
|
||||||
/// </summary>
|
|
||||||
public abstract DateTime? ChangedWhen { get; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Maps the current command to a new instance of the specified type.
|
/// Maps the current command to a new instance of the specified type.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -10,5 +10,5 @@ public record UpdateDocStatusCommand : ModifyDocStatusCommandBase
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets timestamp when this record was added. Returns the StatusChangedWhen value.
|
/// Gets timestamp when this record was added. Returns the StatusChangedWhen value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override DateTime? ChangedWhen => StatusChangedWhen;
|
public DateTime? ChangedWhen => StatusChangedWhen;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user