public void PrivateFromPublic()
        {
            var container = ContainerFactory.Create();
            CompositionBatch batch = new CompositionBatch();
            var importer = new AllPrivateImportOnly();
            batch.AddPart(importer);
            batch.AddPart(new AllPublicExportOnly() { ExportA = 5, ExportB = 10 });
            container.Compose(batch);

            Assert.AreEqual(5, importer.PublicImportA);
            Assert.AreEqual(10, importer.PublicImportB);
        }
        public void PrivateFromPublic()
        {
            var container          = ContainerFactory.Create();
            CompositionBatch batch = new CompositionBatch();
            var importer           = new AllPrivateImportOnly();

            batch.AddPart(importer);
            batch.AddPart(new AllPublicExportOnly()
            {
                ExportA = 5, ExportB = 10
            });
            container.Compose(batch);

            Assert.AreEqual(5, importer.PublicImportA);
            Assert.AreEqual(10, importer.PublicImportB);
        }