/*
 * Copyright (c) eHealth
 */
using System;
using be.ehealth.technicalconnector.service.sts.security.impl;
using be.ehealth.technicalconnector.session;
using be.fgov.ehealth.technicalconnector.distributedkeys;
using be.fgov.ehealth.technicalconnector.jca.impl;
using NUnit.Framework;

namespace be.fgov.ehealth.technicalconnector.jca
{
	/// <summary>
	/// Description of DistributedKeyStoreRegistryTest.
	/// </summary>
	/// 
	[TestFixture]
	public class DistributedKeyStoreRegistryTest
	{
		[Test]
		public void getKeyStore() {
			DistributedKeyStoreRegistry registry = DistributedKeyStoreRegistry.getInstance();
			registry.createDistributedKeyStore(Session.IDENTIFICATION_KEYSTORE, new CredentialProxy(BeIDCredential.getInstance("", BeIDCredential.EID_AUTH_ALIAS)));
			Assert.IsFalse(registry.getDistributedKeyStores().isEmpty());
		}
	}
}
