示例#1
0
        internal SuitAlteration(
            int leftSleeveLength,
            int rightSleeveLength,
            int leftTrouserLength,
            int rightTrouserLength)
        {
            Id = new SuitAlterationId(Guid.NewGuid());
            LeftSleeveLength   = leftSleeveLength;
            RightSleeveLength  = rightSleeveLength;
            LeftTrouserLength  = leftTrouserLength;
            RightTrouserLength = rightTrouserLength;

            Status = SuitAlterationStatus.Created;

            AddDomainEvent(new OrderPlacedDomainEvent(Id));
        }