예제 #1
0
        public void GetCustomerByQueryStringTests()
        {
            var normalFilePath      = Path.GetFullPath("./TestData/SampleData.csv");
            var customerDataService = new CustomerDataService(normalFilePath);
            var result = customerDataService.GetCustomerByQueryString(string.Empty, 1, 50, out var total).Count;

            Assert.True(result > 30);
            Assert.True(total >= result);

            var searchStr = "rtabar@hotmail";

            result = customerDataService.GetCustomerByQueryString(searchStr, 1, 50, out total).Count;
            Assert.True(result == 1);
            Assert.True(total == 1);
        }