public IEnumerable <SGSPointData> GetQ(int id) { var opd = new OnePointData { Id = id }; return(SGSPointData.GetPointData(opd)); }
public void SGSPDGetPointDataTest_pid_1() { var res = SGSPointData.GetPointData(1); Assert.IsTrue(res.Count > 0); foreach (var m in res) { Console.WriteLine(m); } }
public void SGSPDGetPointDataTest_pid_1_DT_2020_04_01_07_39_0_0() { var contDT = new DateTime(2020, 4, 1, 7, 39, 0, 0); var res = SGSPointData.GetPointData(1, contDT, contDT); Assert.AreEqual(1, res.Count); foreach (var m in res) { Console.WriteLine(m); } }
public void SGSPDGetPointDataTest_LastData() { var res = SGSPointData.GetPointData(); var control = SGSPoint.GetAll.Count; foreach (var m in res) { Console.WriteLine(m); } Assert.IsTrue(res.Count <= control); }
public void SGSPDGetPointDataTest_pid_1_4() { var contDT = new List <long> { 1, 4 }; var res = SGSPointData.GetPointData(contDT); Assert.IsTrue(res.Count > 0); foreach (var m in res) { Console.WriteLine(m); } }
public void SGSPDGetPointDataTest_pid_1Z() { var opd = new OnePointData { Id = 1 }; var res = SGSPointData.GetPointData(opd); Assert.IsTrue(res.Count > 0); foreach (var m in res) { Console.WriteLine(m); } }
public void SGSPDGetPointDataTest_pid_1_DT_2020_04_01_07_39_0_0_Z() { var contDT = new DateTime(2020, 4, 1, 7, 39, 0, 0); var opd = new OnePointData { Id = 1, DateFrom = contDT, DateTo = contDT }; var res = SGSPointData.GetPointData(opd); Assert.AreEqual(1, res.Count); foreach (var m in res) { Console.WriteLine(m); } }
public IEnumerable <SGSPointData> GetPoinstData([FromBody] IEnumerable <long> PointsId) { return(SGSPointData.GetPointData(PointsId)); }
public IEnumerable <SGSPointData> Post([FromBody] ManyPointsData manyPointsData) { return(SGSPointData.GetPointData(manyPointsData.PointsId, manyPointsData.DateFrom, manyPointsData.DateTo)); }
public IEnumerable <SGSPointData> Post([FromBody] OnePointData onePointData, long id) { return(SGSPointData.GetPointData(id, onePointData.DateFrom, onePointData.DateTo)); }
public IEnumerable <SGSPointData> Get(long id) { return(SGSPointData.GetPointData(id)); }
public IEnumerable <SGSPointData> Get() { return(SGSPointData.GetPointData()); }
public IEnumerable <SGSPointData> PostQ([FromBody] OnePointData onePointData, long id) { onePointData.Id = id; return(SGSPointData.GetPointData(onePointData)); }