コード例 #1
0
        public WorkOrder(Guid id,
                         bool isEditable,
                         Order order,
                         Operational operational,
                         string userCreated,
                         CreatedOn createdOn) : base(id)
        {
            if (order == null)
            {
                throw Error.ArgumentNull(string.Format("{0} can't be null", nameof(order)));
            }

            IsEditable  = isEditable;
            Order       = order;
            Operational = operational;
            UserCreated = userCreated;
            CreatedOn   = createdOn;
        }
コード例 #2
0
 public Builder WithOperational(Operational value)
 {
     _operational = value;
     return(this);
 }