Beispiel #1
0
        public void MergeMetadata_MultiMetadataInThreeLayers_Succeed()
        {
            var metadataRootList = MetadataMergerTestFixture.MultiMetadataInThreeLayers_TestValue ();
            var metadataMerger = new MetadataMerger(_metadataLayerRepository);

            var metadata = metadataMerger.MergeMetadata(metadataRootList);

            var expectedMetadata = MetadataMergerTestFixture.MultiMetadataInThreeLayers_ExpectedResult ();
            MetadataTestHelper.AssertMetadataAreEqual ( expectedMetadata, metadata );
        }
Beispiel #2
0
 public void MergeMetadata_MetadataForDifferentResources_ThrowException()
 {
     var metadataRootList = new List<MetadataRoot>
                                {
                                    new MetadataRoot ( "Resource1", 1 ),
                                    new MetadataRoot ( "Resource2", 1 )
                                };
     var metadataMerger = new MetadataMerger(_metadataLayerRepository);
     metadataMerger.MergeMetadata(metadataRootList);
 }
Beispiel #3
0
 public void MergeMetadata_WithParameterNull_ThrowException()
 {
     var metadataMerger = new MetadataMerger ( _metadataLayerRepository );
     metadataMerger.MergeMetadata ( null );
 }
Beispiel #4
0
 public void MergeMetadata_WithParameterEmpty_ThrowException()
 {
     var metadataMerger = new MetadataMerger(_metadataLayerRepository);
     metadataMerger.MergeMetadata(new List<MetadataRoot>());
 }