예제 #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 );
        }
예제 #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);
 }
예제 #3
0
 public void MergeMetadata_WithParameterNull_ThrowException()
 {
     var metadataMerger = new MetadataMerger ( _metadataLayerRepository );
     metadataMerger.MergeMetadata ( null );
 }
예제 #4
0
 public void MergeMetadata_WithParameterEmpty_ThrowException()
 {
     var metadataMerger = new MetadataMerger(_metadataLayerRepository);
     metadataMerger.MergeMetadata(new List<MetadataRoot>());
 }