public void AddSenderBaseMessageTypeTest()
        {
            var senderRepository = new MemoryGatewaysRepository();

            senderRepository.AddSender(_subscriptionKey, _identification, _senderIMessage.Object);
            senderRepository.AddSender(SubscriptionKeyMessageFactory.CreateFromType(typeof(IMessageFake)).ToSubscriptorKey(), _identification, _senderIMessageFake.Object);


            var messageSenders = senderRepository.GetMessageSenders(_key);

            Assert.IsTrue(messageSenders.Count() == 2);
            Assert.IsTrue(messageSenders.Contains(_senderIMessage.Object));
            Assert.IsTrue(messageSenders.Contains(_senderIMessageFake.Object));
        }
        public void AddSenderSimpleMessageTypeTest()
        {
            var senderRepository = new MemoryGatewaysRepository();

            senderRepository.AddSender(_subscriptionKey, _identification, _senderMessageFake.Object);

            var messageSenders = senderRepository.GetMessageSenders(_key);

            Assert.IsTrue(messageSenders.Count(messageSender => messageSender == _senderMessageFake.Object) > 0);
        }