public bool IsCommandType(Type type)
        {
            var isMessage           = _messageTypeMatching.IsMessageType(type);
            var nameEndsWithCommand = type.Name.EndsWith("Command");

            return(isMessage && nameEndsWithCommand);
        }
        public bool IsEventType(Type type)
        {
            var isMessage         = _messageTypeMatching.IsMessageType(type);
            var nameEndsWithEvent = type.Name.EndsWith("Event");

            return(isMessage && nameEndsWithEvent);
        }