Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created May 26, 2021 21:39
Show Gist options
  • Save dcomartin/043193aa1e4f93cb973b8e5c522b4cd4 to your computer and use it in GitHub Desktop.
Save dcomartin/043193aa1e4f93cb973b8e5c522b4cd4 to your computer and use it in GitHub Desktop.
public interface ICatalogService
{
Task<Product> GetProductBySku(string sku);
Task<Product> GetProductForSaleBySku(string sku);
Task<List<Product>> GetProducts();
Task UpdateProductInfo();
}
public interface ISalesService
{
Task IncreasePrice(string sku, decimal price);
Task DecreasePrice(string sku, decimal price);
}
public interface IPurchasingService
{
Task IncreaseCost(string sku, decimal cost);
Task DecreaseCost(string sku, decimal cost);
}
public interface IWarehouseService
{
Task ShipProduct(string sku, Guid salesOrderId);
Task ReceiveProduct(string sku, Guid purchaseOrderId);
Task AdjustInventory(string sku, int quantity);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment