public void GetListOfDocumentsByDateRange() { var documentLogic = new DocumentLogic(_jsonLogic); var result = documentLogic.GetDocumentsByDate(new DateTime(2017, 4, 30), new DateTime(2017, 5, 16)); Assert.AreEqual(result.Count(), 4); }
public void GetListOfDocumentsByExactDate() { var documentLogic = new DocumentLogic(_jsonLogic); var result = documentLogic.GetDocumentsByDate(new DateTime(2017, 4, 19)); Assert.AreEqual(result.Count(), 3); }
public void TestUnreceivedDocuments() { var rl = new Report(_jsonLogic); var dl = new DocumentLogic(_jsonLogic); DateTime start = new DateTime(2017, 1, 1); DateTime end = new DateTime(2017, 5, 19); var res = dl.GetDocumentsByDate(start, end); var result = rl.GetUnreceivedDocuments(res); int a = 0; }