5 overrides of CreateWithContent
Microsoft.AspNetCore.WebUtilities.Tests (5)
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (5)
34public override ReadOnlySequence<byte> CreateWithContent(byte[] data) 49public override ReadOnlySequence<byte> CreateWithContent(byte[] data) 64public override ReadOnlySequence<byte> CreateWithContent(byte[] data) 79public override ReadOnlySequence<byte> CreateWithContent(byte[] data) 92public override ReadOnlySequence<byte> CreateWithContent(byte[] data)
11 references to CreateWithContent
Microsoft.AspNetCore.WebUtilities.Tests (11)
FormPipeReaderTests.cs (10)
217var readOnlySequence = ReadOnlySequenceFactory.SegmentPerByteFactory.CreateWithContent(bytes); 276var readOnlySequence = ReadOnlySequenceFactory.SingleSegmentFactory.CreateWithContent(encoding.GetBytes("foo=bar&baz=boo&t=")); 295var readOnlySequence = ReadOnlySequenceFactory.SingleSegmentFactory.CreateWithContent(encoding.GetBytes("foo=bar&baz=boo&t=")); 317var readOnlySequence = ReadOnlySequenceFactory.SegmentPerByteFactory.CreateWithContent(encoding.GetBytes("foo=bar&baz=boo&t=")); 336var readOnlySequence = ReadOnlySequenceFactory.SegmentPerByteFactory.CreateWithContent(encoding.GetBytes("foo=bar&baz=boo&t=")); 358var readOnlySequence = ReadOnlySequenceFactory.SegmentPerByteFactory.CreateWithContent(encoding.GetBytes("foo=bar&baz=bo" + new string('a', 128))); 376var readOnlySequence = ReadOnlySequenceFactory.SegmentPerByteFactory.CreateWithContent(encoding.GetBytes("+++=+++&++++=++++&+=")); 395var readOnlySequence = ReadOnlySequenceFactory.SingleSegmentFactory.CreateWithContent(encoding.GetBytes("++%2B=+++%2B&++++=++++&+=")); 414var readOnlySequence = ReadOnlySequenceFactory.SegmentPerByteFactory.CreateWithContent(encoding.GetBytes("\"%-.<>\\^_`{|}~=\"%-.<>\\^_`{|}~&\"%-.<>\\^_`{|}=wow")); 448var readOnlySequence = ReadOnlySequenceFactory.SingleSegmentFactory.CreateWithContent(Encoding.UTF8.GetBytes("foo=bar&baz=boo&t="));
src\Shared\Buffers.Testing\ReadOnlySequenceFactory.cs (1)
24return CreateWithContent(Encoding.ASCII.GetBytes(data));