예제 #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 ();
        }
예제 #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();
        }
예제 #3
0
        protected override void OnSetup()
        {
            var mock = new Mock <IMetadataLayerRepository>();

            mock.Setup(x => x.GetAllMetadataLayers())
            .Returns(MetadataLayers);
            _metadataLayerRepository = mock.Object;
        }
예제 #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;
 }
예제 #5
0
 protected override void OnSetup()
 {
     var mock = new Mock<IMetadataLayerRepository>();
     mock.Setup ( x => x.GetAllMetadataLayers () )
         .Returns(MetadataLayers);
     _metadataLayerRepository = mock.Object;
 }
예제 #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;
 }