18 instantiations of NonSeekableReadStream
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (10)
XmlDataContractSerializerInputFormatterTest.cs (5)
149httpContext.Request.Body = new NonSeekableReadStream(contentBytes, allowSyncReads: true); 213httpContext.Request.Body = new NonSeekableReadStream(contentBytes); 248httpContext.Request.Body = new NonSeekableReadStream(contentBytes, allowSyncReads: false); 280httpContext.Request.Body = new NonSeekableReadStream(contentBytes); 339httpContext.Request.Body = new NonSeekableReadStream(contentBytes);
XmlSerializerInputFormatterTest.cs (5)
54httpContext.Request.Body = new NonSeekableReadStream(contentBytes, allowSyncReads: true); 91httpContext.Request.Body = new NonSeekableReadStream(contentBytes); 127httpContext.Request.Body = new NonSeekableReadStream(contentBytes, allowSyncReads: false); 163httpContext.Request.Body = new NonSeekableReadStream(contentBytes); 205httpContext.Request.Body = new NonSeekableReadStream(contentBytes);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (8)
NewtonsoftJsonInputFormatterTest.cs (6)
41httpContext.Request.Body = new NonSeekableReadStream(contentBytes, allowSyncReads: false); 77httpContext.Request.Body = new NonSeekableReadStream(contentBytes); 113httpContext.Request.Body = new NonSeekableReadStream(contentBytes); 453httpContext.Setup(h => h.Request.Body).Returns(new NonSeekableReadStream(content, allowSyncReads: false)); 505httpContext.Request.Body = new NonSeekableReadStream(contentBytes, allowSyncReads: false); 548httpContext.Request.Body = new NonSeekableReadStream(contentBytes, allowSyncReads: false);
NewtonsoftJsonPatchInputFormatterTest.cs (2)
40httpContext.Request.Body = new NonSeekableReadStream(contentBytes, allowSyncReads: false); 77httpContext.Request.Body = new NonSeekableReadStream(contentBytes);