public async Task <IsgsSchedulesDTO> GetIsgsSced(string start_date, string end_date) { DateTime startDate = DateTime.ParseExact(start_date, "yyyy-MM-dd", CultureInfo.InvariantCulture); DateTime endDate = DateTime.ParseExact(end_date, "yyyy-MM-dd", CultureInfo.InvariantCulture); IsgsSchedulesDTO res = await _wbesLiveDataService.GetIsgsScedForDates(startDate, endDate); return(res); }
public async Task GetIsgsThermalDownMarginsForDatesTestAsync() { WbesLiveDataService service = new WbesLiveDataService(_config); int numDays = 3; IsgsSchedulesDTO schData = await service.GetIsgsThermalDownMarginsForDates(DateTime.Now.AddDays(-1 * (numDays - 1)), DateTime.Now); Assert.IsTrue(schData != null); Assert.IsTrue(schData.GenNames.Count > 10); Assert.IsTrue(schData.Timestamps.Count == 96 * (numDays)); Assert.IsTrue(schData.Margins.Keys.Count == schData.GenNames.Count); }