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);
        }
 public void MyTestCleanup()
 {
     SetUpUtilities.RemoveUmbracoConfigFileFromHttpCache();
 }
 public void MyTestInitialize()
 {
     SetUpUtilities.AddUmbracoConfigFileToHttpCache();
 }
 public void InitTestFixture()
 {
     SetUpUtilities.InitConfigurationManager();
     m_User = new User(0);
     SetUpUtilities.InitAppDomainDynamicBase();
 }
 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");
 }