Class TestEventSuccessHandler
A Test IMessageHandler<TMessage> for handling TestEvent.
Inheritance
System.Object
TestEventSuccessHandler
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Azure.ServiceBus.Tests.Integration
Assembly: Cqrs.Azure.ServiceBus.Tests.Integration.dll
Syntax
public class TestEventSuccessHandler : IMessageHandler<TestEvent>, IHandler
Constructors
TestEventSuccessHandler(IDictionary<Guid, Tuple<Boolean, Exception>>)
Instantiate and initialise a new TestEventSuccessHandler specifying the test flag container.
Declaration
public TestEventSuccessHandler(IDictionary<Guid, Tuple<bool, Exception>> testResponse)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.Guid, System.Tuple<System.Boolean, System.Exception>> | testResponse | The test flag container. |
Properties
TestResponse
A local reference to the test flag container.
Declaration
protected IDictionary<Guid, Tuple<bool, Exception>> TestResponse { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Guid, System.Tuple<System.Boolean, System.Exception>> |
Methods
Handle(TestEvent)
Sets a value into TestResponse so it can be reported back to the test class.
Declaration
public void Handle(TestEvent message)
Parameters
Type | Name | Description |
---|---|---|
TestEvent | message |