Exemple #1
0
        public void CanParseCustomerData()
        {
            StringReader reader = new StringReader(MockData.SampleRows);
            var          parser = new CustomerFileParser.FileParser();

            var customers = parser.Parse(reader);

            Assert.True(customers.Any());
        }
        public void ApproveParsedCustomerData()
        {
            StringReader reader = new StringReader(MockData.SampleRows);
            var          parser = new CustomerFileParser.FileParser();

            var customers = parser.Parse(reader);

            Approvals.VerifyAll(customers, "Customer");
        }