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

            }
        }
Ejemplo n.º 2
0
        private static Response <IBusiness> DecodeBusinessResponse()
        {
            const string PATH = "ProApiLibraryTests.Resources.JsonResponses.businessResponse.json";

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