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

            }
        }
示例#2
0
        private static Response <ILocation> DecodeLocationResponse()
        {
            const string PATH = "ProApiLibraryTests.Resources.JsonResponses.locationResponse.json";

            using (var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(PATH))
            {
                var decoder  = new ProApiLibrary.Api.Clients.ResponseDecoders.NewtonsoftStreaming.LocationResponseDecoder();
                var response = decoder.Decode(stream, Client);
                return(response);
            }
        }