Example #1
0
        public static IRealTimeOr CreateRealTimeOr([NotNull] IAgenda agenda,
                                                   [NotNull] IWire inputOne,
                                                   [NotNull] IWire inputTwo,
                                                   [NotNull] IWire output)
        {
            WindsorContainer container = GetWindsorContainerFromContext();

            var         factory = container.Resolve <IRealTimeOrFactory>();
            IRealTimeOr or      = factory.Create(agenda,
                                                 inputOne,
                                                 inputTwo,
                                                 output);

            return(or);
        }
Example #2
0
        public void GivenOrUsingAgendaWithInputOneAndInputTwoAndOutput([NotNull] string orName,
                                                                       [NotNull] string agendaName,
                                                                       [NotNull] string wireInputOneName,
                                                                       [NotNull] string wireInputTwoName,
                                                                       [NotNull] string wireOutputName)
        {
            IAgenda agenda   = GetAgendaFromContext(agendaName);
            IWire   inputOne = GetWireFromContext(wireInputOneName);
            IWire   inputTwo = GetWireFromContext(wireInputTwoName);
            IWire   output   = GetWireFromContext(wireOutputName);

            IRealTimeOr or = CreateRealTimeOr(agenda,
                                              inputOne,
                                              inputTwo,
                                              output);

            ScenarioContext.Current [orName] = or;
        }