Ejemplo n.º 1
0
        public void TestCommandBase()
        {
            Csla.ApplicationContext.GlobalContext.Clear();
            CommandObject obj = new CommandObject();

            Assert.AreEqual("Executed", obj.ExecuteServerCode().AProperty);
        }
Ejemplo n.º 2
0
        public void TestCommandBase()
        {
#pragma warning disable CS0618 // Type or member is obsolete
            Csla.ApplicationContext.GlobalContext.Clear();
#pragma warning restore CS0618 // Type or member is obsolete
            CommandObject obj = new CommandObject();
            Assert.AreEqual("Executed", obj.ExecuteServerCode().AProperty);
        }
Ejemplo n.º 3
0
        public void TestCommandBase()
        {
            IDataPortal <CommandObject> dataPortal = _testDIContext.CreateDataPortal <CommandObject>();

            TestResults.Reinitialise();
            CommandObject obj = dataPortal.Create();

            obj = dataPortal.Execute(obj);
            Assert.AreEqual("Executed", obj.AProperty);
        }