public ITrackerReportResults Post(IReportSpecification reportSpecification) { var mongoReportGenerator = new MongoReportGenerator( ConfigurationManager.ConnectionStrings["MongoConnectionString"].ConnectionString); return mongoReportGenerator.GeneratorReport(reportSpecification); }
public void GivenATrackerWithNoCustomFields_WhenIncrementingTraker_ThenTotalReflectsIncrementAndNoOccurencesIsSet() { var generator = new MongoReportGenerator("mongodb://localhost:9001/Graphene"); var spec = new ReportSpecification(new[] {typeof (PatientDemographicSearchMatchesTracker)}, DateTime.UtcNow.AddDays(-100), DateTime.UtcNow, ReportResolution.Hour); ITrackerReportResults newresult = generator.GeneratorReport(spec); Assert.IsTrue(newresult.AggregationResults.Any()); }