public void AddToFreezerApprovalTest() { var freezer = new IceCreamFreezer(); freezer.AddIceCream(new IceCreamProduct { Name = "Tastey" }); freezer.AddIceCream(new IceCreamProduct { Name = "Lite" }); Approvals.VerifyAll("Freezer Contents Test:", freezer.Contents(), "Ice Cream"); }
/// <summary> /// Add Ice Cream to the Storage unit. /// </summary> /// <param name="iceCreamProduct"></param> public void AddIceCreamToFreezer(Lib.IceCreamProduct iceCreamProduct) { _freezer.AddIceCream(iceCreamProduct); ResetListBox(); }