Exemple #1
0
        public void Should_use_the_specified_message_serializer()
        {
            IEndpoint          endpoint      = _endpointCache.GetEndpoint("loopback://localhost/mt_client");
            var                endpointClass = endpoint as Endpoint;
            IMessageSerializer serializer    = endpointClass.Serializer;

            serializer.ShouldNotBeNull();
            serializer.ShouldBeAnInstanceOf <JsonMessageSerializer>();
        }
Exemple #2
0
        public void Should_use_the_default_serializer_for_unconfigured()
        {
            IEndpoint          endpoint      = _endpointCache.GetEndpoint("loopback://localhost/mt_server");
            var                endpointClass = endpoint as Endpoint;
            IMessageSerializer serializer    = endpointClass.Serializer;

            serializer.ShouldNotBeNull();
            serializer.ShouldBeAnInstanceOf <JsonMessageSerializer>();
        }
 public void OneIsProvided()
 {
     _result.ShouldNotBeNull();
 }