Beispiel #1
0
        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;
        }
Beispiel #2
0
        public TestCaseRun(string owner, ETestCaseStatus status)
        {
            Owner  = owner;
            Status = status;

            StartDate = DateTime.UtcNow;

            Validate();
        }