public void when_product_csv_is_valid_then_records_returned_correctly() { var service = new CsvReader(); var stream = new MemoryStream(Encoding.UTF8.GetBytes(VALID_PRODUCT_CSV)); IEnumerable<ProductCSV> result = service.ReadProducts(stream); Assert.AreEqual(1, result.ToList().Count); }