@@ -771,36 +771,32 @@ public static TheoryData<ResolvePopKeyTheoryData> GetPopKeysFromJkuAsyncTheoryDa
771
771
{
772
772
return new TheoryData < ResolvePopKeyTheoryData >
773
773
{
774
- new ResolvePopKeyTheoryData
774
+ new ResolvePopKeyTheoryData ( "InvalidJkuUrlNull" )
775
775
{
776
776
First = true ,
777
777
JkuSetUrl = null ,
778
778
ExpectedException = ExpectedException . ArgumentNullException ( ) ,
779
- TestId = "InvalidJkuUrlNull" ,
780
779
} ,
781
- new ResolvePopKeyTheoryData
780
+ new ResolvePopKeyTheoryData ( "InvalidJkuUrlEmptyString" )
782
781
{
783
782
JkuSetUrl = string . Empty ,
784
783
ExpectedException = ExpectedException . ArgumentNullException ( ) ,
785
- TestId = "InvalidJkuUrlEmptyString" ,
786
784
} ,
787
- new ResolvePopKeyTheoryData
785
+ new ResolvePopKeyTheoryData ( "InvalidHttpsRequired" )
788
786
{
789
787
JkuSetUrl = "http://www.contoso.com" ,
790
788
ExpectedException = new ExpectedException ( typeof ( SignedHttpRequestInvalidPopKeyException ) , "IDX23006" ) ,
791
- TestId = "InvalidHttpsRequired" ,
792
789
} ,
793
- new ResolvePopKeyTheoryData
790
+ new ResolvePopKeyTheoryData ( "InvalidNoContentReturned" )
794
791
{
795
792
JkuSetUrl = "https://www.contoso.com" ,
796
793
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
797
794
{
798
795
HttpClientProvider = ( ) => HttpResponseMessageUtils . SetupHttpClientThatReturns ( string . Empty ) ,
799
796
} ,
800
797
ExpectedException = new ExpectedException ( typeof ( SignedHttpRequestInvalidPopKeyException ) , "IDX23022" , null , true ) ,
801
- TestId = "InvalidNoContentReturned" ,
802
798
} ,
803
- new ResolvePopKeyTheoryData
799
+ new ResolvePopKeyTheoryData ( "InvalidHttpNoContentReturned" )
804
800
{
805
801
JkuSetUrl = "http://www.contoso.com" ,
806
802
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
@@ -809,47 +805,42 @@ public static TheoryData<ResolvePopKeyTheoryData> GetPopKeysFromJkuAsyncTheoryDa
809
805
HttpClientProvider = ( ) => HttpResponseMessageUtils . SetupHttpClientThatReturns ( string . Empty ) ,
810
806
} ,
811
807
ExpectedException = new ExpectedException ( typeof ( SignedHttpRequestInvalidPopKeyException ) , "IDX23022" , null , true ) ,
812
- TestId = "InvalidHttpNoContentReturned" ,
813
808
} ,
814
- new ResolvePopKeyTheoryData
809
+ new ResolvePopKeyTheoryData ( "Valid0KeysReturnedLive" )
815
810
{
816
811
JkuSetUrl = "http://www.contoso.com" ,
817
812
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
818
813
{
819
814
RequireHttpsForJkuResourceRetrieval = false ,
820
815
} ,
821
816
ExpectedException = new ExpectedException ( typeof ( SignedHttpRequestInvalidPopKeyException ) , "IDX23022" , typeof ( ArgumentException ) ) ,
822
- TestId = "Valid0KeysReturnedLive" ,
823
817
} ,
824
- new ResolvePopKeyTheoryData
818
+ new ResolvePopKeyTheoryData ( "Valid0KeysReturned" )
825
819
{
826
820
JkuSetUrl = "https://www.contoso.com" ,
827
821
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
828
822
{
829
823
HttpClientProvider = ( ) => HttpResponseMessageUtils . SetupHttpClientThatReturns ( "{\" test\" : 1}" ) ,
830
824
} ,
831
825
ExpectedNumberOfPopKeysReturned = 0 ,
832
- TestId = "Valid0KeysReturned" ,
833
826
} ,
834
- new ResolvePopKeyTheoryData
827
+ new ResolvePopKeyTheoryData ( "Valid2KeysReturned" )
835
828
{
836
829
JkuSetUrl = "https://www.contoso.com" ,
837
830
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
838
831
{
839
832
HttpClientProvider = ( ) => HttpResponseMessageUtils . SetupHttpClientThatReturns ( DataSets . JsonWebKeySetString1 ) ,
840
833
} ,
841
834
ExpectedNumberOfPopKeysReturned = 2 ,
842
- TestId = "Valid2KeysReturned" ,
843
835
} ,
844
- new ResolvePopKeyTheoryData
836
+ new ResolvePopKeyTheoryData ( "Valid3KeysReturned" )
845
837
{
846
838
JkuSetUrl = "https://www.contoso.com" ,
847
839
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
848
840
{
849
841
HttpClientProvider = ( ) => HttpResponseMessageUtils . SetupHttpClientThatReturns ( DataSets . JsonWebKeySetECCString ) ,
850
842
} ,
851
843
ExpectedNumberOfPopKeysReturned = 3 ,
852
- TestId = "Valid3KeysReturned" ,
853
844
} ,
854
845
} ;
855
846
}
0 commit comments