コード例 #1
0
        public void MyTestInitialize()
        {
            SetUpUtilities.AddUmbracoConfigFileToHttpCache();

            m_ExistingMediaType = GetExistingMediaType();
            m_NewRootMedia      = CreateNewUnderRoot(m_ExistingMediaType);
        }
コード例 #2
0
 public void InitTestFixture()
 {
     ConfigurationManagerService.ConfigManager = new ConfigurationManagerTest(SetUpUtilities.GetAppSettings());
     m_User = new User(0);
     SetUpUtilities.InitConfigurationManager();
     SetUpUtilities.InitAppDomainDynamicBase();
 }
        public void MyTestCleanup()
        {
            //remove the member type
            m_MemberType.delete();

            SetUpUtilities.RemoveUmbracoConfigFileFromHttpCache();
        }
        public void MyTestInitialize()
        {
            SetUpUtilities.AddUmbracoConfigFileToHttpCache();

            //need to create a member type for the provider
            m_MemberType = MemberType.MakeNew(User.GetUser(0), Guid.NewGuid().ToString("N"));

            m_Provider = new UmbracoMembershipProvider(); // TODO: Initialize to an appropriate value

            //initialize the provider
            var config = new NameValueCollection();

            config.Add("enablePasswordRetrieval", "false");
            config.Add("enablePasswordReset", "false");
            config.Add("requiresQuestionAndAnswer", "false");
            config.Add("defaultMemberTypeAlias", m_MemberType.Alias);
            config.Add("passwordFormat", "Hashed");

            m_Provider.Initialize(string.Empty, config);
        }
コード例 #5
0
 public void MyTestCleanup()
 {
     SetUpUtilities.RemoveUmbracoConfigFileFromHttpCache();
 }
コード例 #6
0
 public void MyTestInitialize()
 {
     SetUpUtilities.AddUmbracoConfigFileToHttpCache();
 }
コード例 #7
0
 public void InitTestFixture()
 {
     SetUpUtilities.InitConfigurationManager();
     m_User = new User(0);
     SetUpUtilities.InitAppDomainDynamicBase();
 }
コード例 #8
0
 public void InitTestFixture()
 {
     SetUpUtilities.InitConfigurationManager();
     m_User = new User(0);
 }
コード例 #9
0
 public void MyTestCleanup()
 {
     DeleteMediaType(m_NewMediaType);
     SetUpUtilities.RemoveUmbracoConfigFileFromHttpCache();
 }
コード例 #10
0
 public void MyTestInitialize()
 {
     SetUpUtilities.AddUmbracoConfigFileToHttpCache();
     m_NewMediaType = CreateNewMediaType();
     SetUpUtilities.InitAppDomainDynamicBase();
 }
コード例 #11
0
 public void Init()
 {
     SetUpUtilities.AddUmbracoConfigFileToHttpCache();
     m_ExistingDocType = GetExistingDocType();
     m_NewRootDoc      = CreateNewUnderRoot(m_ExistingDocType, m_User);
 }
コード例 #12
0
 public void Cleanup()
 {
     RecycleAndDelete(m_NewRootDoc);
     SetUpUtilities.RemoveUmbracoConfigFileFromHttpCache();
 }
コード例 #13
0
 public void InitTestFixture()
 {
     ConfigurationManagerService.ConfigManager = new ConfigurationManagerTest(SetUpUtilities.GetAppSettings());
 }
コード例 #14
0
 public void Init()
 {
     SetUpUtilities.AddUmbracoConfigFileToHttpCache();
 }
 public void MyTestInitialize()
 {
     SetUpUtilities.AddUmbracoConfigFileToHttpCache();
     m_NewDocType = CreateNewDocType();
 }
 public void InitTestFixture()
 {
     ConfigurationManagerService.ConfigManager = new ConfigurationManagerTest(SetUpUtilities.GetAppSettings());
     m_User = new User(0);
     AppDomain.CurrentDomain.SetDynamicBase("/tmp/kol3-temp-aspnet-0");
 }