public void Saml2Binding_Get_NullOnPlainGet() { var r = Substitute.For <HttpRequestBase>(); r.HttpMethod.Returns("GET"); Saml2PostBinding.Get(r).Should().BeNull(); }
public void Saml2Binding_Get_NullOnPlainPost() { var r = Substitute.For <HttpRequestBase>(); r.HttpMethod.Returns("POST"); r.Form.Returns(new NameValueCollection()); Saml2PostBinding.Get(r).Should().BeNull(); }
public void Saml2Binding_Get_Saml2Binding() { var r = Substitute.For <HttpRequestBase>(); r.HttpMethod.Returns("POST"); r.Form.Returns(new NameValueCollection() { { "SAMLResponse", "someData" } }); Saml2PostBinding.Get(r).Should().BeOfType <Saml2PostBinding>(); }
public void Saml2Binding_Get_NullOnPlainPost() { var r = new HttpRequestData("GET", new Uri("http://example.com")); Saml2PostBinding.Get(r).Should().BeNull(); }