private void AddCollectionBulkOrderDeedItems(LargeBulkOrderDeedDefinition bulkOrderDeedDefinition, int quantity)
 {
     foreach (var smallBulkOrderDeed in bulkOrderDeedDefinition.SmallBulkOrderDeedDefinitions)
     {
         _CollectionBulkOrderDeedItems.Add(new CollectionBulkOrderDeedItem(smallBulkOrderDeed.Name, quantity));
     }
 }
        public LargeCollectionBulkOrderDeed(Profession profession, LargeBulkOrderDeedDefinition bulkOrderDeedDefinition, int quantity, bool exceptional, BulkOrderDeedMaterial material, Vendor vendor, BulkOrderDeedBook bulkOrderDeedBook, IDictionary <SmallBulkOrderDeedDefinition, bool> completedStates)
            : base(profession, bulkOrderDeedDefinition, quantity, exceptional, material, vendor, bulkOrderDeedBook)
        {
            _CollectionBulkOrderDeedItems = new List <CollectionBulkOrderDeedItem>();
            AddCollectionBulkOrderDeedItems(bulkOrderDeedDefinition, quantity);

            foreach (var keyValuePair in completedStates)
            {
                var item = _CollectionBulkOrderDeedItems.FirstOrDefault(i => String.Compare(i.Name, keyValuePair.Key.Name, true) == 0);

                if (item != null)
                {
                    item.IsCompleted = keyValuePair.Value;
                }
            }
        }
 public LargeCollectionBulkOrderDeed(Profession profession, LargeBulkOrderDeedDefinition bulkOrderDeedDefinition, int quantity, bool exceptional, BulkOrderDeedMaterial material)
     : base(profession, bulkOrderDeedDefinition, quantity, exceptional, material, Vendor.None, BulkOrderDeedBook.None)
 {
     _CollectionBulkOrderDeedItems = new List <CollectionBulkOrderDeedItem>();
     AddCollectionBulkOrderDeedItems(bulkOrderDeedDefinition, quantity);
 }