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