Skip to content

Instantly share code, notes, and snippets.

@dsyme
Created October 3, 2022 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsyme/33d7a9ffecce64ab4c3c75ba06c0ef40 to your computer and use it in GitHub Desktop.
Save dsyme/33d7a9ffecce64ab4c3c75ba06c0ef40 to your computer and use it in GitHub Desktop.
public class Product
{
public string Name { get; set; }
public decimal Price { get; set; }
}
public class Trolley
{
public List<Product> Products { get; set; }
public decimal Total { get; set; }
}
public class TrolleyCalculator
{
public Trolley CalculateTrolleyTotal(List<Product> products, List<SpecialOffer> specialOffers)
{
// TODO: Implement me
}
}
public class SpecialOffer
{
public string Name { get; set; }
public int Quantity { get; set; }
public decimal Price { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment