public void TestCommandBase() { Csla.ApplicationContext.GlobalContext.Clear(); CommandObject obj = new CommandObject(); Assert.AreEqual("Executed", obj.ExecuteServerCode().AProperty); }
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); }
public void TestCommandBase() { IDataPortal <CommandObject> dataPortal = _testDIContext.CreateDataPortal <CommandObject>(); TestResults.Reinitialise(); CommandObject obj = dataPortal.Create(); obj = dataPortal.Execute(obj); Assert.AreEqual("Executed", obj.AProperty); }