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; } }
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); } }