public void CanGetAndSetPound() { var expected = new Random().Next(); var target = new KartItem() { Pound = expected }; Assert.Equal(expected, target.Pound); }
public void CanGetAndSetCost() { var expected = new Random().Next(); var target = new KartItem() { Cost = expected }; Assert.Equal(expected, target.Cost); }
public void CanGetAndSetItem() { var expected = new Random().ToString(); var target = new KartItem() { Item = expected }; Assert.Equal(expected, target.Item); }
public static string BuyOneGetOneFree(KartItem product) { Kart kart = new Kart(); foreach (var item in kart.GetKart()) { if (product == item) { for (int i = 0; i < item.Cost; i++) { } return("Your get one buy one credit applied today ! "); } } return("There is no discount for your item at this time"); }