32 references to RangeConditionHeaderValue
Microsoft.AspNetCore.Http.Results.Tests (9)
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
146requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 180requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"NotEtag\""));
src\Shared\ResultsTests\FileStreamResultTestBase.cs (1)
88requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\""));
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (3)
77requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 109requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 136requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"NotEtag\""));
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
95requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 132requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 165requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"NotEtag\""));
Microsoft.AspNetCore.Mvc.Core.Test (9)
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
146requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 180requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"NotEtag\""));
src\Shared\ResultsTests\FileStreamResultTestBase.cs (1)
88requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\""));
src\Shared\ResultsTests\PhysicalFileResultTestBase.cs (3)
77requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 109requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 136requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"NotEtag\""));
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
95requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 132requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"Etag\"")); 165requestHeaders.IfRange = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"NotEtag\""));
Microsoft.Net.Http.Headers (1)
RangeConditionHeaderValue.cs (1)
51: this(new EntityTagHeaderValue(entityTag))
Microsoft.Net.Http.Headers.Tests (13)
RangeConditionHeaderValueTest.cs (13)
11var rangeCondition = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"x\"")); 16Assert.Throws<ArgumentNullException>(() => new RangeConditionHeaderValue(input)); 41var rangeCondition = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"x\"")); 52var rangeCondition2 = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"x\"")); 59var rangeCondition6 = new RangeConditionHeaderValue( 73var rangeCondition2 = new RangeConditionHeaderValue(new EntityTagHeaderValue("\"x\"")); 80var rangeCondition6 = new RangeConditionHeaderValue( 100CheckValidParse(" W/ \"tag\" ", new RangeConditionHeaderValue(new EntityTagHeaderValue("\"tag\"", true))); 101CheckValidParse(" w/\"tag\"", new RangeConditionHeaderValue(new EntityTagHeaderValue("\"tag\"", true))); 102CheckValidParse("\"tag\"", new RangeConditionHeaderValue(new EntityTagHeaderValue("\"tag\""))); 129CheckValidTryParse(" W/ \"tag\" ", new RangeConditionHeaderValue(new EntityTagHeaderValue("\"tag\"", true))); 130CheckValidTryParse(" w/\"tag\"", new RangeConditionHeaderValue(new EntityTagHeaderValue("\"tag\"", true))); 131CheckValidTryParse("\"tag\"", new RangeConditionHeaderValue(new EntityTagHeaderValue("\"tag\"")));