public void CreateFromFactory()
        {
            IProfileProvider dbProfile = ProfileFactory.GetProfileProvider("MyDbProfile1");

            dbProfile.SetProfile(this.ident, "test123");
            string result = dbProfile.GetProfile(this.ident).ToString();

            Assert.AreEqual("test123", result);
        }
示例#2
0
 public void Setup()
 {
     this.ident          = new GenericIdentity("testuser");
     this.profile        = ProfileFactory.GetProfileProvider("MyDbProfile1") as DbProfileProvider;
     this.veryLongString = "testing123".PadLeft(10000, 'X');
 }