public void TestOfAdminDeleteApplication()
        {
            this.InitAdmins();

            var app = this.NewObject <SCApplication>("测试应用");

            FacadeWithAcl.AddApplication(app);

            //Sleep(200);

            FacadeWithAcl.DeleteApplication(app);

            Assert.AreNotEqual(PC.Adapters.SchemaObjectAdapter.Instance.Load(app.ID).Status, SchemaObjectStatus.Normal);
        }
        public void TestOfIllegalDeleteApplication()
        {
            this.InitAdmins();

            this.SetCurrentPrincipal(this.GetUserByCodeName("wanglch"));

            var app = this.NewObject <SCApplication>("测试应用");

            Facade.AddApplication(app);

            //Sleep(200);

            FacadeWithAcl.DeleteApplication(app);

            Assert.Fail("不应该执行到此处");
        }