예제 #1
0
파일: Listing.cs 프로젝트: elbandit/PPPDDD
        public Listing(Guid id, Guid sellerId, ListingFormat format)
        {
            if (sellerId == Guid.Empty)
                throw new ArgumentNullException("Seller Id cannot be null");

            Id = id;
            Format = format;
            SellerId = sellerId;
        }
        public Listing(Guid id, Guid sellerId, ListingFormat format)
        {
            if (sellerId == Guid.Empty)
            {
                throw new ArgumentNullException("Seller Id cannot be null");
            }

            Id       = id;
            Format   = format;
            SellerId = sellerId;
        }