CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Test.AppContext.AppContextTests Class Reference

Public Member Functions

void SetScopedSp ()
 
void ClearContextsAfterEachTest ()
 
void SimpleTest ()
 
void ApplicationContextProperties ()
 
void TestAppContextAcrossDifferentThreads ()
 
void ClientContext ()
 Test the Client Context More...
 
void DataPortalEvents ()
 Test the dataportal events More...
 
void FailCreateContext ()
 Test the FaileCreate Context More...
 
void FailFetchContext ()
 
void FailUpdateContext ()
 
void FailDeleteContext ()
 

Static Public Member Functions

static void ClassInitialize (TestContext context)
 

Detailed Description

Definition at line 28 of file AppContextTests.cs.

Member Function Documentation

◆ ApplicationContextProperties()

void Csla.Test.AppContext.AppContextTests.ApplicationContextProperties ( )

Definition at line 70 of file AppContextTests.cs.

◆ ClassInitialize()

static void Csla.Test.AppContext.AppContextTests.ClassInitialize ( TestContext  context)
static

Definition at line 33 of file AppContextTests.cs.

◆ ClearContextsAfterEachTest()

void Csla.Test.AppContext.AppContextTests.ClearContextsAfterEachTest ( )

Definition at line 45 of file AppContextTests.cs.

◆ ClientContext()

void Csla.Test.AppContext.AppContextTests.ClientContext ( )

Test the Client Context

Clearing the GlobalContext clears the ClientContext also? Should the ClientContext be cleared explicitly also?

Definition at line 142 of file AppContextTests.cs.

◆ DataPortalEvents()

void Csla.Test.AppContext.AppContextTests.DataPortalEvents ( )

Test the dataportal events

How does the GlobalContext get the keys "dpinvoke" and "dpinvokecomplete"?

In the vb version of this test it calls RemoveHandler in VB. Unfortunately removing handlers aren't quite that easy in C# I had to declare EventHandlers that could be added and removed. Also I found out that the VB library does not seem to contain the DataPortalInvokeEventHandler object so I put a conditional compile flag around this method and set a warning message.

Definition at line 191 of file AppContextTests.cs.

◆ FailCreateContext()

void Csla.Test.AppContext.AppContextTests.FailCreateContext ( )

Test the FaileCreate Context

Definition at line 233 of file AppContextTests.cs.

◆ FailDeleteContext()

void Csla.Test.AppContext.AppContextTests.FailDeleteContext ( )

Definition at line 339 of file AppContextTests.cs.

◆ FailFetchContext()

void Csla.Test.AppContext.AppContextTests.FailFetchContext ( )

Definition at line 260 of file AppContextTests.cs.

◆ FailUpdateContext()

void Csla.Test.AppContext.AppContextTests.FailUpdateContext ( )

Definition at line 290 of file AppContextTests.cs.

◆ SetScopedSp()

void Csla.Test.AppContext.AppContextTests.SetScopedSp ( )

Definition at line 39 of file AppContextTests.cs.

◆ SimpleTest()

void Csla.Test.AppContext.AppContextTests.SimpleTest ( )

Definition at line 53 of file AppContextTests.cs.

◆ TestAppContextAcrossDifferentThreads()

void Csla.Test.AppContext.AppContextTests.TestAppContextAcrossDifferentThreads ( )

Definition at line 82 of file AppContextTests.cs.