Example #1
0
        public ProjectAggregate(string name, string description)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentException("Name is not specified", "name");
            }

            Name        = name;
            Description = description;
            CreatedAt   = DateTime.Now;
            State       = ProjectAggregateState.Created;
            RootSuit    = new Suit("root", "root", 0);
            _testRuns   = new List <TestRun>();
            _suits      = new List <Suit>()
            {
            };
        }
Example #2
0
 /// <summary>
 /// Update status
 /// </summary>
 /// <param name="state">ProjectAggregateState</param>
 public void UpdateState(ProjectAggregateState state)
 {
     State = state;
 }