Class MessageSerialiserTests
A series of tests on the MessageSerialiser<TAuthenticationToken> class
Inheritance
System.Object
MessageSerialiserTests
Namespace: Cqrs.Azure.ServiceBus.Tests.Unit
Assembly: Cqrs.Azure.ServiceBus.Tests.Unit.dll
Syntax
public class MessageSerialiserTests : object
Methods
DeserialiseCommand_TestCommandData_ExpectedCommand()
Tests the DeserialiseCommand(String) method
Passing a valid test string of JSON
Expecting the data deserialised to the expected
Declaration
public void DeserialiseCommand_TestCommandData_ExpectedCommand()
DeserialiseEvent_TestEventData_ExpectedEvent()
Tests the DeserialiseEvent(String) method
Passing a valid test string of JSON
Expecting the data deserialised to the expected
Declaration
public void DeserialiseEvent_TestEventData_ExpectedEvent()
SerialiseCommand_TestCommand_ExpectedSerialisedData()
Tests the SerialiseCommand<TCommand>(TCommand) method Passing a valid test ICommand<TAuthenticationToken> Expecting the serialised data is as expected.
Declaration
public void SerialiseCommand_TestCommand_ExpectedSerialisedData()
SerialiseEvent_TestEvent_ExpectedSerialisedData()
Tests the SerialiseEvent<TEvent>(TEvent) method Passing a valid test IEvent<TAuthenticationToken> Expecting the serialised data is as expected.
Declaration
public void SerialiseEvent_TestEvent_ExpectedSerialisedData()