Пример #1
0
        public ActionResult Client()
        {
            CurvesData.LSTCurvesData.Clear();
            CurvesData.LSTCurveHeaders.Clear();
            CurvesData.LSTIndexInfo.Clear();

            string headers = handler.GetCurveHeadersAsync().Result;

            ViewBag.CurveHeaders = GetCurveHeaders(headers);
            return(View());
        }
Пример #2
0
 public void GetCurveHeadersAsyncTest()
 {
     try
     {
         appiHandler = new APIHandler();
         var t = appiHandler.GetCurveHeadersAsync().Result;
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.Message);
     }
 }
Пример #3
0
 public void InvokeDataTransfferAsyncTest()
 {
     try
     {
         string curves = "A,B,C";
         appiHandler = new APIHandler();
         appiHandler.GetCurveHeadersAsync();
         var t = appiHandler.InvokeDataTransfferAsync(curves).Result;
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.Message);
     }
 }