DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Classes | Public Member Functions | List of all members
Deveel.Data.Linq.ContextQueryTests Class Reference
Inheritance diagram for Deveel.Data.Linq.ContextQueryTests:
Deveel.Data.ContextBasedTest

Classes

class  EmptyTestQueryContext
 
class  EmptyTestType
 

Public Member Functions

void CreateContext ()
 
void RequestTableNotConfigured ()
 
void RequestEntryNotConfigured ()
 
- Public Member Functions inherited from Deveel.Data.ContextBasedTest
void TestSetUp ()
 
void TestFixtureSetUp ()
 
void TestTearDown ()
 
void TestFixtureTearDown ()
 

Additional Inherited Members

- Protected Member Functions inherited from Deveel.Data.ContextBasedTest
virtual void RegisterServices (ServiceContainer container)
 
virtual ISystem CreateSystem ()
 
virtual IDatabase CreateDatabase (ISystem system, IConfiguration configuration)
 
virtual ISession CreateAdminSession (IDatabase database)
 
virtual IQuery CreateQuery (ISession session)
 
ISession CreateUserSession (string userName, string password)
 
virtual void OnSetUp (string testName)
 
virtual void OnTearDown ()
 
- Protected Attributes inherited from Deveel.Data.ContextBasedTest
const string AdminUserName = "SA"
 
const string AdminPassword = "1234567890"
 
const string DatabaseName = "testdb"
 
- Properties inherited from Deveel.Data.ContextBasedTest
virtual bool SingleContext [get]
 
IQuery Query [get, private set]
 
ISystem System [get, private set]
 
IDatabase Database [get, private set]
 
ISession Session [get, private set]
 

Detailed Description

Definition at line 9 of file ContextQueryTests.cs.

Member Function Documentation

void Deveel.Data.Linq.ContextQueryTests.CreateContext ( )
inline

Definition at line 11 of file ContextQueryTests.cs.

11  {
12  QueryContext context = null;
13  Assert.DoesNotThrow(() => context = new EmptyTestQueryContext(Query));
14  Assert.IsNotNull(context);
15  }
void Deveel.Data.Linq.ContextQueryTests.RequestEntryNotConfigured ( )
inline

Definition at line 24 of file ContextQueryTests.cs.

24  {
25  var context = new EmptyTestQueryContext(Query);
26  Assert.Throws<QueryException>(() => context.Table<EmptyTestType>().FindById(1));
27  }
void Deveel.Data.Linq.ContextQueryTests.RequestTableNotConfigured ( )
inline

Definition at line 18 of file ContextQueryTests.cs.

18  {
19  var context = new EmptyTestQueryContext(Query);
20  Assert.DoesNotThrow(() => context.Table<EmptyTestType>());
21  }

The documentation for this class was generated from the following file: