Exemplo n.º 1
0
        protected void receiveRunSpec(string id)
        {
            var spec = TestingContext.FindSpecification(id);

            ClassUnderTest.Receive(new RunSpec {
                id = id, spec = spec
            });
        }
        public void SetUp()
        {
            var controller = controllerForProject("Storyteller.Samples");

            theListener = new PassthroughListener();


            var task = controller.Start(EngineMode.Interactive).ContinueWith(t =>
            {
                controller.Messaging.AddListener(theListener);
                return(controller.Send(new RunSpec {
                    id = "embeds", spec = TestingContext.FindSpecification("embeds")
                }).AndWaitFor <SpecExecutionCompleted>());
            });

            task.Wait();
            task.Result.Wait(1.Seconds());

            theResults = task.Result.Result;



            controller.Messaging.RemoveListener(theListener);
        }
Exemplo n.º 3
0
 public when_receiving_a_run_spec_message_with_the_actual_spec()
 {
     receiveRunSpec("embeds");
     theSpecification = TestingContext.FindSpecification("embeds");
 }
 protected override void theContextIs()
 {
     receiveRunSpec("embeds");
     theSpecification = TestingContext.FindSpecification("embeds");
 }