Exemple #1
0
 public RootSchemeEventHandler(
     ILogger <RootSchemeEventHandler> logger,
     ISchemePublishedEventHandler schemePublishedEventHandler,
     ISchemeUnpublishedEventHandler schemeUnpublishedEventHandler)
 {
     this.logger = logger;
     this.schemePublishedEventHandler   = schemePublishedEventHandler;
     this.schemeUnpublishedEventHandler = schemeUnpublishedEventHandler;
 }
        public RootSchemeEventHandlerSpec()
        {
            var loggerStub = Substitute.For <ILogger <RootSchemeEventHandler> >();

            this.schemePublishedEventHandler   = Substitute.For <ISchemePublishedEventHandler>();
            this.schemeUnpublishedEventHandler = Substitute.For <ISchemeUnpublishedEventHandler>();
            this.handler = new RootSchemeEventHandler(loggerStub,
                                                      this.schemePublishedEventHandler, this.schemeUnpublishedEventHandler);
        }