コード例 #1
0
        public void GetMockHashProvider()
        {
            HashProviderFactory factory = new HashProviderFactory(new TestConfigurationContext());
            MockHashProvider    store   = (MockHashProvider)factory.CreateHashProvider("mockHashProvider1");

            Assert.IsNotNull(store);
        }
コード例 #2
0
        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);
        }