/// <summary> /// Initializes a new instance of the <see cref="UserRepositoryV4"/> class. /// </summary> /// <param name="crmService">The CRM service.</param> /// <param name="contactToUserConverter">The contact to user converter.</param> /// <param name="cacheService">The cache service.</param> public UserRepositoryV4(ICrmServiceV4 crmService, IContactToUserConverterV4 contactToUserConverter, ICacheService cacheService) : base(cacheService) { Assert.ArgumentNotNull(crmService, "crmService"); Assert.ArgumentNotNull(contactToUserConverter, "contactToUserConverter"); this.CrmService = crmService; this.ContactToUserConverter = contactToUserConverter; }
/// <summary> /// Initializes a new instance of the <see cref="RoleRepositoryV4"/> class. /// </summary> /// <param name="crmService">The CRM service.</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 RoleRepositoryV4(ICrmServiceV4 crmService, IMarketingListToRoleConverterV4 marketingListToRoleConverter, IContactToUserConverterV4 contactToUserConverter, UserRepositoryBase userRepository, ICacheService cacheService) : base(userRepository, cacheService) { Assert.ArgumentNotNull(crmService, "crmService"); Assert.ArgumentNotNull(marketingListToRoleConverter, "marketingListToRoleConverter"); this.CrmService = crmService; this.MarketingListToRoleConverter = marketingListToRoleConverter; this.ContactToUserConverter = contactToUserConverter; }