public void Unregister() { fixture.AssertFileExists(false); manager.RegisterRoleSession(RoleSessionName, samlCredentials); fixture.AssertObjectCount(1); manager.UnregisterRoleSession(RoleSessionName); fixture.AssertFileExists(false); }
public void RegisterEndpointUdpateExisting() { manager.RegisterEndpoint(DefaultAuthSamlEndpoint); fixture.AssertObjectCount(1); fixture.AssertJsonProperty(EndpointName, SettingsConstants.EndpointField, EndpointUri.ToString()); fixture.AssertJsonProperty(EndpointName, SettingsConstants.AuthenticationTypeField, SAMLAuthenticationType.Kerberos.ToString()); manager.RegisterEndpoint(ExplicitAuthSamlEndpoint); fixture.AssertObjectCount(1); fixture.AssertJsonProperty(EndpointName, SettingsConstants.EndpointField, OtherEndpointUri.ToString()); fixture.AssertJsonProperty(EndpointName, SettingsConstants.AuthenticationTypeField, SAMLAuthenticationType.NTLM.ToString()); }