public void ReturnCustomersInAlphabeticalOrderByLastName() { var vipCustomers = new VipCustomers(); vipCustomers.Add(new Customer("Albert", "Thomson")); vipCustomers.Add(new Customer("Mandy", "Harris")); vipCustomers.Add(new Customer("John", "Smith")); var orderedVipCustomers = vipCustomers.InAlphabeticalOrderByLastName(); Approvals.VerifyJson(JsonConvert.SerializeObject(orderedVipCustomers)); }
public void ReturnCustomersFullNameInAlphabeticalOrder() { var vipCustomers = new VipCustomers(); vipCustomers.Add(new Customer("Mandy", "Harris")); vipCustomers.Add(new Customer("John", "Smith")); vipCustomers.Add(new Customer("Albert", "Thomson")); var orderedVipCustomers = vipCustomers.InAlphabeticalOrder(); Approvals.VerifyAll(orderedVipCustomers, ""); }
public void GenerateOrderedXmlReport() { var vipCustomers = new VipCustomers(); vipCustomers.Add(new Customer("Albert", "Thomson")); vipCustomers.Add(new Customer("John", "Smith")); vipCustomers.Add(new Customer("Mandy", "Harris")); var report = vipCustomers.Report(); var removeCreationTime = ScrubberUtils.RemoveLinesContaining("CreationTime"); XmlApprovals.VerifyOrderedXml(report, ScrubberUtils.Combine(removeCreationTime)); }