public void SaveColumnview_withnullvalue()
        {
            MRPEntities db = new MRPEntities();

            HttpContext.Current = DataHelper.SetUserAndPermission();
            ColumnViewController objUserController = new ColumnViewController();

            objUserController.ControllerContext = new ControllerContext(MockHelpers.FakeUrlHelper.FakeHttpContext(), new RouteData(), objUserController);
            objUserController.Url = MockHelpers.FakeUrlHelper.UrlHelper();
            var result = objUserController.SaveColumnView(null) as JsonResult;

            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name + " \n The Assert Value result : " + result.Data);
            Assert.IsNotNull(result.Data);
        }
        public void SaveColumnview()
        {
            MRPEntities db = new MRPEntities();

            HttpContext.Current = DataHelper.SetUserAndPermission();
            ColumnViewController objUserController = new ColumnViewController();

            objUserController.ControllerContext = new ControllerContext(MockHelpers.FakeUrlHelper.FakeHttpContext(), new RouteData(), objUserController);
            objUserController.Url = MockHelpers.FakeUrlHelper.UrlHelper();
            List <AttributeDetail> lstattribute = new List <AttributeDetail>();
            AttributeDetail        objattribute = new AttributeDetail();

            objattribute.AttributeId   = "Actual";
            objattribute.AttributeType = "Actual";
            objattribute.ColumnOrder   = " ";
            lstattribute.Add(objattribute);
            var result = objUserController.SaveColumnView(lstattribute, string.Empty, false) as JsonResult;

            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name + " \n The Assert Value result : " + result.Data);
            Assert.IsNotNull(result.Data);
        }