Ejemplo n.º 1
0
        public void Test_Delete()
        {
            FunctoidBLL bll = new FunctoidBLL(_unit);

            Functoid func = bll.GetByID(1);


            bll.Delete(func);
        }
Ejemplo n.º 2
0
        public void Test_Update()
        {
            FunctoidBLL bll = new FunctoidBLL(_unit);

            Functoid func = bll.GetByID(1);

            func.DefaultValue = "2.0";

            bll.Update(func);
        }
        public async Task <IHttpActionResult> Post(Functoid functoid)
        {
            try
            {
                new FunctoidBLL(_unit).Update(functoid);
            }
            catch (Exception ex)
            {
                LogHelper.Error(_log, ex.ToString());
                return(InternalServerError(ex));
            }

            return(Ok(functoid));
        }
Ejemplo n.º 4
0
        public void Test_Create()
        {
            FunctoidBLL bll = new FunctoidBLL(_unit);

            Functoid func = new Functoid
            {
                Name         = "ticker",
                Usage        = "offset_day",
                ReturnType   = "double",
                DefaultValue = "1.00"
            };

            bll.Create(func);
        }