public override void SetUp()
        {
            base.SetUp();

            MembersMembershipProvider = new MembersMembershipProvider(MemberService, MemberTypeService);

            MembersMembershipProvider.Initialize("test", new NameValueCollection {
                { "passwordFormat", MembershipPasswordFormat.Clear.ToString() }
            });

            DistributedCacheBinder = new DistributedCacheBinder(new DistributedCache(), Mock.Of <IUmbracoContextFactory>(), Logger);
            DistributedCacheBinder.BindEvents(true);
        }
예제 #2
0
 public void Initialize()
 {
     _binder.BindEvents();
 }