public void Handler_info_is_returned_when_using_only_message_name() { handlerCache.Prime(); const string messageTypeName = "TestMessage"; var handlerInfo = handlerCache.GetHandlerInfo(messageTypeName).FirstOrDefault(); Assert.Equal("BarHandler", handlerInfo.HandlerType.Name); Assert.Equal(messageTypeName, handlerInfo.MessageType.Name); }
static HandlerCacheTest() { handlerCache.Prime(); }