Exemple #1
0
 public void AddProduct(ProductRecord record, ulong price)
 {
     SetProductPrice(record.ProductId, price);
     AddProduct(record);
 }  // noexcept
Exemple #2
0
        }  // noexcept

        public void AddProduct(ProductRecord record, ulong price)
        {
            _storage.AddProduct(record, price);
        }  // noexcept
Exemple #3
0
        }  // ProductPriceNotSetException

        public ulong BuyProduct(ProductRecord record)
        {
            _storage.BuyProduct(record, out var price);
            return(price);
        }  // ProductAmountNotSetException, ProductAmountNotEnoughException
Exemple #4
0
        }  // noexcept

        public void AddProduct(ProductRecord record)
        {
            _storage.AddProduct(record);
        }  // noexcept