public void TestAnalyticsRepository() { IAnalyticsRepository analytics = new AnalyticsRepository(new CrossSolarDbContext()); OneHourElectricity oneHourElectricity = new OneHourElectricity() { DateTime = DateTime.Now, KiloWatt = 312, PanelId = "12" }; analytics.InsertAsync(oneHourElectricity); var result = analytics.GetByPanelIdAsync("12"); Assert.NotNull(result); }