Example #1
0
        public void MergeMetadata_MultiMetadataInSameLayer_Succeed()
        {
            var metadataRootList = MetadataMergerTestFixture.MultiMetadataInSameLayer_TestValue();
            var metadataMerger   = new MetadataMerger(_metadataLayerRepository);

            var metadata = metadataMerger.MergeMetadata(metadataRootList);

            var expectedMetadata = MetadataMergerTestFixture.MultiMetadataInSameLayer_ExpectedResult();

            MetadataTestHelper.AssertMetadataAreEqual(expectedMetadata, metadata);
        }
Example #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);
        }
Example #3
0
        public void MergeMetadata_WithParameterEmpty_ThrowException()
        {
            var metadataMerger = new MetadataMerger(_metadataLayerRepository);

            metadataMerger.MergeMetadata(new List <MetadataRoot>());
        }
Example #4
0
        public void MergeMetadata_WithParameterNull_ThrowException()
        {
            var metadataMerger = new MetadataMerger(_metadataLayerRepository);

            metadataMerger.MergeMetadata(null);
        }