Class TestCommandSuccessHandler
A Test IMessageHandler<TMessage> for handling TestCommand.
Inheritance
System.Object
TestCommandSuccessHandler
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 TestCommandSuccessHandler : IMessageHandler<TestCommand>, IHandler
Constructors
TestCommandSuccessHandler(IDictionary<Guid, Tuple<Boolean, Exception>>)
Instantiate and initialise a new TestCommandSuccessHandler specifying the test flag container.
Declaration
public TestCommandSuccessHandler(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(TestCommand)
Sets a value into TestResponse so it can be reported back to the test class.
Declaration
public void Handle(TestCommand message)
Parameters
Type | Name | Description |
---|---|---|
TestCommand | message |