public void SubscribeToEvent_adds_type_AcceptedTypes_list(InMemoryBusEngine sut) { sut.SubscribeToEvent <FirstTestEvent>(); Assert.That(sut.IsTypeAccepted(typeof(FirstTestEvent))); }
public void SubscribeToCommand_adds_type_to_AcceptedTypes_list(InMemoryBusEngine sut) { sut.SubscribeToCommand <FirstTestCommand>(); Assert.That(sut.IsTypeAccepted(typeof(FirstTestCommand))); }