Created
October 3, 2022 22:16
-
-
Save dsyme/33d7a9ffecce64ab4c3c75ba06c0ef40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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