public void PendingAuthnInMemoryStorage_Remove_FalseOnRemovedTwice()
 {
     var id = new Saml2Id();
     var requestData = new StoredRequestState(new EntityId("testidp"), new Uri("http://localhost/Return.aspx"));
     StoredRequestState responseData;
     var container = new PendingAuthnInMemoryStorage();
     container.Add(id, requestData);
     container.TryRemove(id, out responseData).Should().BeTrue();
     container.TryRemove(id, out responseData).Should().BeFalse();
 }
 public void PendingAuthnInMemoryStorage_Remove_FalseOnIdNeverIssued()
 {
     var id = new Saml2Id();
     StoredRequestState responseData;
     var container = new PendingAuthnInMemoryStorage();
     container.TryRemove(id, out responseData).Should().BeFalse();
 }
 public void PendingAuthnRequest_TryRemove_NullGivesNull()
 {
     Saml2Id id = null;
     StoredRequestState state;
     var container = new PendingAuthnInMemoryStorage();
     container.TryRemove(id, out state).Should().BeFalse();
     state.Should().BeNull();
 }