Ejemplo n.º 1
0
        /// <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 ();
        }
Ejemplo n.º 2
0
        /// <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();
        }
Ejemplo n.º 3
0
        protected override void OnSetup()
        {
            var mock = new Mock <IMetadataLayerRepository>();

            mock.Setup(x => x.GetAllMetadataLayers())
            .Returns(MetadataLayers);
            _metadataLayerRepository = mock.Object;
        }
Ejemplo n.º 4
0
 /// <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;
 }
Ejemplo n.º 5
0
 protected override void OnSetup()
 {
     var mock = new Mock<IMetadataLayerRepository>();
     mock.Setup ( x => x.GetAllMetadataLayers () )
         .Returns(MetadataLayers);
     _metadataLayerRepository = mock.Object;
 }
Ejemplo n.º 6
0
 /// <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;
 }