Ejemplo n.º 1
0
        public void GlobalSetup()
        {
            _asStreamMarshaller = CreateStreamMarshaller <Message <SomeObject> >();
            _defaultMarshaller  = CreateDefaultMarshaller <Message <SomeObject> >();
            _payload            = new Message <SomeObject>(DomainExtensions.CreateSomeObject());

            _serializationContext   = new StubSerializationContext();
            _deserializationContext = new StubDeserializationContext(Serialize(_payload));
        }
Ejemplo n.º 2
0
        public void GlobalSetup()
        {
            var payload = DomainExtensions.CreateSomeObject();

            _serviceModelGrpcDataContract = CreateServiceModelGrpc(DataContractMarshallerFactory.Default, payload);
            _serviceModelGrpcProtobuf     = CreateServiceModelGrpc(ProtobufMarshallerFactory.Default, payload);
            _serviceModelGrpcMessagePack  = CreateServiceModelGrpc(MessagePackMarshallerFactory.Default, payload);
            _serviceModelGrpcProto        = CreateServiceModelGrpcProto(payload);
            _native       = CreateNativeGrpc(payload);
            _protobufGrpc = CreateProtobufGrpc(payload);
            _magicOnion   = CreateMagicOnion(payload);
        }