/// <summary> /// Initializes a new instance of the <see cref="ProfileRepositoryV4"/> class. /// </summary> /// <param name="metadataService">The CRM metadata service.</param> /// <param name="crmService">The CRM service.</param> /// <param name="userRepository">The user repository.</param> /// <param name="cacheService">The cache service.</param> public ProfileRepositoryV4(IMetadataServiceV4 metadataService, ICrmServiceV4 crmService, UserRepositoryBase userRepository, ICacheService cacheService) : base(userRepository, cacheService) { Assert.ArgumentNotNull(metadataService, "metadataService"); Assert.ArgumentNotNull(crmService, "crmService"); this.CrmMetadataService = metadataService; this.CrmService = crmService; }
/// <summary> /// Initializes a new instance of the <see cref="EntityRepository"/> class. /// </summary> /// <param name="metadataService">The metadata service.</param> /// <param name="crmService">The CRM service.</param> /// <param name="cacheService">The cache service.</param> public EntityRepository(IMetadataServiceV4 metadataService, ICrmServiceV4 crmService, ICacheService cacheService) : base(cacheService) { this.crmMetadataService = metadataService; this.crmService = crmService; }