Exemplo n.º 1
0
        public void ConsumeBinaryFiles_UseModel_SerializerSet()
        {
            var builder = new TestConsumerEndpointBuilder();

            var endpoint = builder.ConsumeBinaryFiles(serializer => serializer.UseModel <CustomBinaryFileMessage>())
                           .Build();

            endpoint.Serializer.Should().BeOfType <BinaryFileMessageSerializer <CustomBinaryFileMessage> >();
        }
Exemplo n.º 2
0
        public void ConsumeBinaryFiles_Default_SerializerSet()
        {
            var builder = new TestConsumerEndpointBuilder();

            var endpoint = builder.ConsumeBinaryFiles().Build();

            endpoint.Serializer.Should().BeOfType <BinaryFileMessageSerializer>();
            endpoint.Serializer.Should().NotBeSameAs(BinaryFileMessageSerializer.Default);
        }