public void TestCountProjectsByUploadBoundaryDateRange() { var sut = new PatService(); var count = sut.CountProjects(AppHelper.DefaultGridSettings(), new DateTime(2013, 9, 27), new DateTime(2013, 9, 27)); Assert.IsTrue(count == 1); }
public void TestProjectCount2() { var gridSettings = new MvcJqGrid.GridSettings(); var sut = new PatService(); var projectCount = sut.CountProjects(gridSettings); Assert.IsTrue(projectCount > 0); }
public void TestProjectCount() { var gridSettings = AppHelper.DefaultGridSettings(); var sut = new PatService(); var projectCount = sut.CountProjects(gridSettings); Assert.IsTrue(projectCount > 0); }
public void TestCountProjectsByUploadDateRange() { var sut = new PatService(); var count2011 = sut.CountProjects(AppHelper.DefaultGridSettings(), new DateTime(2011, 1, 1), new DateTime(2011, 12, 31)); Assert.IsTrue(count2011 == 4); var count2012 = sut.GetProjects(AppHelper.DefaultGridSettings(), new DateTime(2012, 1, 1), new DateTime(2012, 12, 31)); Assert.IsTrue(count2012.Count == 1); }