Exemple #1
0
        public void SetUp()
        {
            mMembershipFakeFactory.GetIntegrationUsers().ToList().ForEach(x => UserInfoProvider.SetUserInfo(x));
            SettingsKeyInfoProvider.SetValue("cmssitesharedaccounts", 0, "True");

            manager = UserManager.Initialize(new AppBuilder(), new FakeUserManager(new UserStore("NonExistingSiteForTestingPurposes")));
        }
Exemple #2
0
        public void SetUp()
        {
            Fake <UserSettingsInfo, UserSettingsInfoProvider>().WithData();
            Fake <UserInfo, UserInfoProvider>().WithData(mMembershipFakeFactory.GetUsers());
            settingsFake = Fake <SettingsKeyInfo, SettingsKeyInfoProvider>().WithData(mMembershipFakeFactory.GetSharedUsersSetting());

            manager = UserManager.Initialize(new AppBuilder(), new FakeUserManager(new UserStore("NonExistingSiteForTestingPurposes")));
        }