public void Base_Class_Events_Should_Be_Set()
        {
            InMemoryBus            bus = new InMemoryBus();
            ICommonWorkflowService commonWorkflowService = Mock.Of <ICommonWorkflowService>();

            CancelBookingWorkflow wf = new CancelBookingWorkflow(bus, commonWorkflowService);

            Assert.IsNotNull(wf.Start);
            Assert.IsNotNull(wf.SMSReceived);
        }
        public void Should_send_list_of_reservations()
        {
            InMemoryBus            bus = new InMemoryBus();
            ICommonWorkflowService commonWorkflowService = Mock.Of <ICommonWorkflowService>();

            CancelBookingInstance instance = new CancelBookingInstance();
            CancelBookingWorkflow wf       = new CancelBookingWorkflow(bus, commonWorkflowService);

            wf.RaiseEvent(instance, x => x.Start, "+447901234545");

            Assert.AreEqual(1, bus.PublishedMessages <SendSms>().Count);
            Assert.AreEqual("Please select", bus.PublishedMessages <SendSms>().First().Body);
        }