public void GetMockHashProvider() { HashProviderFactory factory = new HashProviderFactory(new TestConfigurationContext()); MockHashProvider store = (MockHashProvider)factory.CreateHashProvider("mockHashProvider1"); Assert.IsNotNull(store); }
public void GetProvider1() { HashProviderFactory factory = new HashProviderFactory(context); IHashProvider provider = factory.CreateHashProvider("provider1"); Assert.IsNotNull(provider); MockHashProvider mockProvider = provider as MockHashProvider; Assert.IsNotNull(mockProvider); Assert.IsTrue(mockProvider.Initialized); }