private void ChangeStatus(ETestCaseStatus newStatus) { if (newStatus <= Status) { throw new DomainException($"Error trying to change {Status} to {newStatus}. Not possible to update Status to a previous state."); } Status = newStatus; }
public TestCaseRun(string owner, ETestCaseStatus status) { Owner = owner; Status = status; StartDate = DateTime.UtcNow; Validate(); }