示例#1
0
        public void TestActionWithCommonController()
        {
            AppFactory            factory = new AppFactory(true);
            CommonControllerModel model   = new CommonControllerModel()
            {
                AppFactory = factory
            };
            CommonController commonController = new CommonController(model);
            UserInfo         info             = new UserInfo();

            info.ActionName = "Microsoft-MockAction";
            info.AppName    = "TestApp";
            var result = commonController.ExecuteAction(info, new ActionRequest()
            {
                DataStore = new DataStore()
            }).Result;

            Assert.IsTrue(result.Status == ActionStatus.Success);
        }