Exemplo n.º 1
0
        public virtual void SetupMembership()
        {
            this.memberService = new Mock <IMemberService>();
            var memberTypeService  = Mock.Of <IMemberTypeService>();
            var membershipProvider = new MembersMembershipProvider(memberService.Object, memberTypeService);

            this.memberCache      = new Mock <IPublishedMemberCache>();
            this.MembershipHelper = new Umbraco.Web.Security.MembershipHelper(this.HttpContext.Object, this.memberCache.Object, membershipProvider, Mock.Of <RoleProvider>(), memberService.Object, memberTypeService, Mock.Of <IUserService>(), Mock.Of <IPublicAccessService>(), AppCaches.NoCache, Mock.Of <ILogger>());
        }