Пример #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="MetadataLayerFactory"/> class.
 /// </summary>
 /// <param name="metadataLayerRepository">The metadata layer repository.</param>
 public MetadataLayerFactory( IMetadataLayerRepository metadataLayerRepository )
 {
     _metadataLayerRepository = metadataLayerRepository;
 }
Пример #3
0
 protected override void OnSetup()
 {
     var mock = new Mock<IMetadataLayerRepository>();
     mock.Setup ( x => x.GetAllMetadataLayers () )
         .Returns(MetadataLayers);
     _metadataLayerRepository = mock.Object;
 }