/// <summary>
        /// Initializes a new instance of the <see cref="UserRepositoryV5"/> class.
        /// </summary>
        /// <param name="organizationServiceCache"></param>
        /// <param name="contactToUserConverter">The contact to user converter.</param>
        /// <param name="cacheService">The cache service.</param>
        public UserRepositoryV5(OrganizationServiceCacheV5 organizationServiceCache, IContactToUserConverterV5 contactToUserConverter, ICacheService cacheService)
            : base(cacheService)
        {
            Assert.ArgumentNotNull(organizationServiceCache, "organizationServiceCache");
            Assert.ArgumentNotNull(contactToUserConverter, "contactToUserConverter");

            this.organizationServiceCache = organizationServiceCache;
            this.ContactToUserConverter   = contactToUserConverter;
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RoleRepositoryV5"/> class.
        /// </summary>
        /// <param name="organizationServiceCache"></param>
        /// <param name="marketingListToRoleConverter">The marketing list to role converter.</param>
        /// <param name="contactToUserConverter">The contact to user converter.</param>
        /// <param name="userRepository">The user repository.</param>
        /// <param name="cacheService">The cache service.</param>
        public RoleRepositoryV5(OrganizationServiceCacheV5 organizationServiceCache, IMarketingListToRoleConverterV5 marketingListToRoleConverter, IContactToUserConverterV5 contactToUserConverter, UserRepositoryBase userRepository, ICacheService cacheService)
            : base(userRepository, cacheService)
        {
            Assert.ArgumentNotNull(organizationServiceCache, "organizationServiceCache");
            Assert.ArgumentNotNull(marketingListToRoleConverter, "marketingListToRoleConverter");

            this.organizationServiceCache     = organizationServiceCache;
            this.MarketingListToRoleConverter = marketingListToRoleConverter;
            this.ContactToUserConverter       = contactToUserConverter;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ProfileRepositoryV5"/> class.
 /// </summary>
 /// <param name="organizationServiceCache"></param>
 /// <param name="userRepository">The user repository.</param>
 /// <param name="cacheService">The cache service.</param>
 public ProfileRepositoryV5(OrganizationServiceCacheV5 organizationServiceCache, UserRepositoryBase userRepository, ICacheService cacheService)
     : base(userRepository, cacheService)
 {
     Assert.ArgumentNotNull(organizationServiceCache, "organizationServiceCache");
     this.organizationServiceCache = organizationServiceCache;
 }