public void FromMessage()
        {
            var translator = new FailureConverter();

            var msg  = new FailureMessage(new EndpointId("a"), new MessageId());
            var data = translator.FromMessage(msg);

            Assert.IsInstanceOf(typeof(FailureData), data);
            Assert.AreSame(msg.Id, data.Id);
            Assert.AreSame(msg.Sender, data.Sender);
            Assert.AreSame(msg.InResponseTo, data.InResponseTo);
        }
        public void ToMessage()
        {
            var translator = new FailureConverter();

            var data = new FailureData
            {
                Id           = new MessageId(),
                InResponseTo = new MessageId(),
                Sender       = new EndpointId("a"),
            };
            var msg = translator.ToMessage(data);

            Assert.IsInstanceOf(typeof(FailureMessage), msg);
            Assert.AreSame(data.Id, msg.Id);
            Assert.AreSame(data.Sender, msg.Sender);
            Assert.AreSame(data.InResponseTo, msg.InResponseTo);
        }
        public void DataTypeToTranslate()
        {
            var translator = new FailureConverter();

            Assert.AreEqual(typeof(FailureData), translator.DataTypeToTranslate);
        }
        public void MessageTypeToTranslate()
        {
            var translator = new FailureConverter();

            Assert.AreEqual(typeof(FailureMessage), translator.MessageTypeToTranslate);
        }