Ejemplo n.º 1
0
        public DefaultBootstrapperTest()
        {
            this.extensionHost     = A.Fake <IExtensionHost <IExtension> >();
            this.reporter          = A.Fake <IReporter>();
            this.strategy          = A.Fake <IStrategy <IExtension> >();
            this.runExecutor       = A.Fake <IExecutor <IExtension> >();
            this.shutdownExecutor  = A.Fake <IExecutor <IExtension> >();
            this.reportingContext  = A.Fake <IReportingContext>();
            this.extensionResolver = A.Fake <IExtensionResolver <IExtension> >();

            this.testee = new DefaultBootstrapper <IExtension>(this.extensionHost, this.reporter);
        }
Ejemplo n.º 2
0
        public DefaultBootstrapperTest()
        {
            this.extensionHost    = new Mock <IExtensionHost <IExtension> >();
            this.reporter         = new Mock <IReporter>();
            this.strategy         = new Mock <IStrategy <IExtension> >();
            this.runExecutor      = new Mock <IExecutor <IExtension> >();
            this.shutdownExecutor = new Mock <IExecutor <IExtension> >();
            this.reportingContext = new Mock <IReportingContext> {
                DefaultValue = DefaultValue.Mock
            };
            this.extensionResolver = new Mock <IExtensionResolver <IExtension> >();

            this.testee = new DefaultBootstrapper <IExtension>(this.extensionHost.Object, this.reporter.Object);
        }