Esempio n. 1
0
        public MefSubstitute Build()
        {
            var compositionContainer = new NSubstituteCompositionContainer(new TypeCatalog(_types));

            compositionContainer.Compose(_batch);
            return(MefSubstitute.CreateFrom(compositionContainer));
        }
Esempio n. 2
0
 private MefSubstitute(NSubstituteCompositionContainer container)
 {
     _container = container;
 }
Esempio n. 3
0
 internal static MefSubstitute CreateFrom(NSubstituteCompositionContainer container)
 {
     return(new MefSubstitute(container));
 }