//[TestMethod] This is a bad test. This assumes there is already data in Graphene public void GivenATrackerWithNoCustomFields_WhenIncrementingTraker_ThenTotalReflectsIncrementAndNoOccurencesIsSet() { var generator = new MongoReportGenerator("mongodb://localhost:9001/Graphene", _fakeLogger); var spec = new ReportSpecification(new[] { typeof(PatientDemographicSearchMatchesTracker) }, DateTime.UtcNow.AddDays(-100), DateTime.UtcNow, ReportResolution.Hour); ITrackerReportResults newresult = generator.BuildReport(spec); Assert.IsTrue(newresult.AggregationResults.Any()); }
//[TestMethod] public void ReportOnTrackerWithBlankFilters() { var generator = new MongoReportGenerator("mongodb://localhost:9001/Graphene", _fakeLogger); var spec = new ReportSpecification(new[] { typeof(PatientDemographicSearchMatchesTracker) }, new[] { new OrgAndVendorFilter { Vendor = "", OrgId = "" } }, DateTime.UtcNow.AddDays(-100), DateTime.UtcNow, ReportResolution.Hour); ITrackerReportResults newresult = generator.BuildReport(spec); Assert.IsTrue(newresult.AggregationResults.Any()); }