/// <summary> /// Initializes a new instance of the <see cref="MetadataMerger"/> class. /// </summary> /// <param name="metadataLayerRepository">The metadata layer repository.</param> public MetadataMerger( IMetadataLayerRepository metadataLayerRepository ) { Check.IsNotNull ( metadataLayerRepository, "metadataLayerRepository is required." ); _metadataLayerRepository = metadataLayerRepository; _metadataLayers = _metadataLayerRepository.GetAllMetadataLayers (); }
/// <summary> /// Initializes a new instance of the <see cref="MetadataMerger"/> class. /// </summary> /// <param name="metadataLayerRepository">The metadata layer repository.</param> public MetadataMerger(IMetadataLayerRepository metadataLayerRepository) { Check.IsNotNull(metadataLayerRepository, "metadataLayerRepository is required."); _metadataLayerRepository = metadataLayerRepository; _metadataLayers = _metadataLayerRepository.GetAllMetadataLayers(); }
protected override void OnSetup() { var mock = new Mock <IMetadataLayerRepository>(); mock.Setup(x => x.GetAllMetadataLayers()) .Returns(MetadataLayers); _metadataLayerRepository = mock.Object; }
/// <summary> /// Initializes a new instance of the <see cref="MetadataLayerFactory"/> class. /// </summary> /// <param name="metadataLayerRepository">The metadata layer repository.</param> public MetadataLayerFactory( IMetadataLayerRepository metadataLayerRepository ) { _metadataLayerRepository = metadataLayerRepository; }
protected override void OnSetup() { var mock = new Mock<IMetadataLayerRepository>(); mock.Setup ( x => x.GetAllMetadataLayers () ) .Returns(MetadataLayers); _metadataLayerRepository = mock.Object; }
/// <summary> /// Initializes a new instance of the <see cref="MetadataLayerFactory"/> class. /// </summary> /// <param name="metadataLayerRepository">The metadata layer repository.</param> public MetadataLayerFactory(IMetadataLayerRepository metadataLayerRepository) { _metadataLayerRepository = metadataLayerRepository; }