Definition at line 8 of file EventsTests.cs.
void Deveel.Data.Diagnostics.EventsTests.AttachRouter |
( |
| ) |
|
|
inline |
Definition at line 10 of file EventsTests.cs.
11 IEvent firedEvent = null;
12 Assert.DoesNotThrow(() =>
Query.Route<ErrorEvent>(@event => firedEvent = @event));
13 Assert.IsNull(firedEvent);
void Deveel.Data.Diagnostics.EventsTests.FireAtLowerLevelAndListenAtHighest |
( |
| ) |
|
|
inline |
Definition at line 35 of file EventsTests.cs.
36 var reset =
new AutoResetEvent(
false);
39 System.Context.Route<InformationEvent>(e => {
44 Query.OnVerbose(
"Test Message");
48 Assert.IsNotNull(fired);
49 Assert.IsInstanceOf<InformationEvent>(fired);
51 var infoEvent = (InformationEvent) fired;
53 Assert.AreEqual(
"Test Message", infoEvent.Message);
void Deveel.Data.Diagnostics.EventsTests.RouteError |
( |
| ) |
|
|
inline |
Definition at line 17 of file EventsTests.cs.
18 var reset =
new AutoResetEvent(
false);
20 IEvent firedEvent = null;
21 Query.Route<ErrorEvent>(e => {
26 Query.OnError(
new Exception(
"Test Error"));
30 Assert.IsNotNull(firedEvent);
31 Assert.IsInstanceOf<ErrorEvent>(firedEvent);
void Deveel.Data.Diagnostics.EventsTests.RouteOneRegisteredMany |
( |
| ) |
|
|
inline |
Definition at line 138 of file EventsTests.cs.
139 var reset =
new AutoResetEvent(
false);
141 QueryEvent a = null, b = null;
142 System.Context.Route<QueryEvent>(e => a = e);
143 System.Context.Route<QueryEvent>(e => b = e);
146 System.Context.Route<InformationEvent>(e => {
151 Query.OnVerbose(
"Test Message");
155 Assert.IsNotNull(fired);
156 Assert.IsInstanceOf<InformationEvent>(fired);
161 var infoEvent = (InformationEvent) fired;
163 Assert.AreEqual(
"Test Message", infoEvent.Message);
void Deveel.Data.Diagnostics.EventsTests.RouteOnlyOnce |
( |
| ) |
|
|
inline |
Definition at line 57 of file EventsTests.cs.
58 var reset1 =
new AutoResetEvent(
false);
59 var reset2 =
new AutoResetEvent(
false);
61 IEvent systemFired = null;
62 System.Context.Route<InformationEvent>(e => {
67 IEvent sessionFired = null;
74 Query.OnVerbose(
"Test Message");
79 Assert.IsNotNull(systemFired);
80 Assert.IsNull(sessionFired);
new ISessionContext Context
void Deveel.Data.Diagnostics.EventsTests.RouteOnlyOnceForSameEventType |
( |
| ) |
|
|
inline |
Definition at line 84 of file EventsTests.cs.
85 var reset1 =
new AutoResetEvent(
false);
86 var reset2 =
new AutoResetEvent(
false);
88 IEvent systemFired = null;
89 System.Context.Route<InformationEvent>(e => {
94 IEvent sessionFired = null;
101 Query.OnVerbose(
"Test Message");
106 Assert.IsNotNull(systemFired);
107 Assert.IsNull(sessionFired);
new ISessionContext Context
void Deveel.Data.Diagnostics.EventsTests.RouteTwiceForSameEventType |
( |
| ) |
|
|
inline |
Definition at line 111 of file EventsTests.cs.
112 var reset1 =
new AutoResetEvent(
false);
113 var reset2 =
new AutoResetEvent(
false);
115 IEvent systemFired = null;
116 System.Context.Route<InformationEvent>(e => {
121 IEvent sessionFired = null;
128 Query.OnVerbose(
"Test Message");
133 Assert.IsNotNull(systemFired);
134 Assert.IsNotNull(sessionFired);
new ISessionContext Context
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-nunit/Deveel.Data.Diagnostics/EventsTests.cs