public void SalesByClientTest() { var target = new StatisticsCalculator(_exampleData.Clients, _exampleData.Products, _exampleData.Invoices); var from = DateTime.Parse("2011-12-05"); var to = DateTime.Parse("2011-12-08"); var client = _exampleData.IcazaClient; var expectedClient = _exampleData.IcazaClient; var expectedInvoiceNumbers = new[] { 7, 8, 10, 15 }; var actual = target.SalesByClient(client, from, to); Assert.AreEqual(expectedClient, actual.Client); Assert.IsTrue(actual.InvoiceNumbers.SequenceEqual(expectedInvoiceNumbers)); Assert.Inconclusive("test actual.Items"); }
public void SalesByClientTest() { IEnumerable<Client> clients = null; // TODO: Initialize to an appropriate value IEnumerable<Product> products = null; // TODO: Initialize to an appropriate value IEnumerable<Invoice> invonces = null; // TODO: Initialize to an appropriate value StatisticsCalculator target = new StatisticsCalculator(clients, products, invonces); // TODO: Initialize to an appropriate value DateTime from = new DateTime(); // TODO: Initialize to an appropriate value DateTime to = new DateTime(); // TODO: Initialize to an appropriate value SalesByClientSummary expected = null; // TODO: Initialize to an appropriate value SalesByClientSummary actual; actual = target.SalesByClient(from, to); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }