public void GetReportsTestWithNullConnectionString()
        {
            var r = new ReportsQuery("");

            var exception = Record.Exception(() => r.GetReports(""));

            Assert.NotNull(exception);
            _output.WriteLine(exception.Message);
            Assert.True(exception.Message.Contains("is null"));
        }
        public void GetReportsTest(string supplierCode, string fromDate, string toDate)
        {
            var r = new ReportsQuery("");

            DateTime?fromDateTime = string.IsNullOrEmpty(fromDate) ? (DateTime?)null : DateTime.Parse(fromDate);
            DateTime?toDateTime   = string.IsNullOrEmpty(toDate) ? (DateTime?)null : DateTime.Parse(toDate);

            var exception = Record.Exception(() => r.GetReports(supplierCode, fromDateTime, toDateTime));

            Assert.NotNull(exception);
            _output.WriteLine(exception.Message);
        }