Exemple #1
0
        private static void InitializeProvider(StormMembershipProvider provider)
        {
            var config = new NameValueCollection {
                { "applicationName", "TestApplication" }
            };

            provider.Initialize("Test", config);
        }
Exemple #2
0
        public void InitializeTest1()
        {
            // Arrange
            var provider = new StormMembershipProvider();
            var config   = new NameValueCollection {
                { "applicationName", "TestApplication" }
            };

            // Act
            provider.Initialize("Test", config);

            // Assert
            Assert.AreEqual("Test", provider.Name);
            Assert.AreEqual("TestApplication", provider.ApplicationName);
        }