Exemplo n.º 1
0
        private static Response <IPhone> DecodePhoneResponse2()
        {
            const string PATH = "ProApiLibraryTests.Resources.JsonResponses.phoneResponse2.json";

            using (var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(PATH))
            {
                var decoder  = new ProApiLibrary.Api.Clients.ResponseDecoders.NewtonsoftStreaming.PhoneResponseDecoder();
                var response = decoder.Decode(stream, Client);
                return(response);
            }
        }
        private static Response<IPhone> DecodePhoneResponse()
        {
            const string PATH = "ProApiLibraryTests.Resources.JsonResponses.phoneResponse.json";
            using (var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(PATH))
            {
                var decoder = new ProApiLibrary.Api.Clients.ResponseDecoders.NewtonsoftStreaming.PhoneResponseDecoder();
                var response = decoder.Decode(stream, Client);
                return response;

            }
        }