public void TestListFilteredJobCallLogInfoByStatus() { // Arrange CallLogModel model = new CallLogModel(new FakeUnitOfWork()); // Act IList<CS_View_JobCallLog> result = model.ListFilteredJobCallLogInfo(1, null, "", null, DateTime.MinValue, DateTime.Now, false, false, ""); // Assert Assert.IsNotNull(result); Assert.AreEqual(3, result.Count); }
public void TestListFilteredJobCallLogInfoByModificationDate() { // Arrange CallLogModel model = new CallLogModel(new FakeUnitOfWork()); // Act IList<CS_View_JobCallLog> result = model.ListFilteredJobCallLogInfo(null, null, "", null, new DateTime(2011, 2, 6), DateTime.Now, false, false, ""); // Assert Assert.IsNotNull(result); Assert.AreEqual(1, result.Count); }