Ejemplo n.º 1
0
        public RegisterWrappers(ISendMessages sender, IPublishMessages publisher, IDeferMessages defer, ScenarioContext sc, ReadOnlySettings settings)
        {
            var container = settings.Get <IConfigureComponents>("SC.ConfigureComponent");

            container.RegisterSingleton(typeof(ISendMessages), new SendMessagesWrapper(sender, sc));
            container.RegisterSingleton(typeof(IPublishMessages), new PublishMessagesWrapper(publisher, sc));
            container.RegisterSingleton(typeof(IDeferMessages), new DeferMessagesWrapper(defer, sc));
        }
Ejemplo n.º 2
0
 public DeferMessagesWrapper(IDeferMessages wrappedSender, ScenarioContext context)
 {
     this.wrappedSender = wrappedSender;
     sessionId          = context.SessionId;
 }