Exemplo n.º 1
0
        public void CheckOrderEntryFlowIsStartedRedirectsToDefaultWithNotStartedFlow()
        {
            TestableOrdersController controller = GetOrderControllerInitialized();

            controller.CurrentOrder = null;

            controller.VerifyOrderEntryFlowIsStarted();

            Assert.IsTrue(controller.MockOrderEntryFlowService.NavigateToDefaultViewCalled);
        }
Exemplo n.º 2
0
        public void CheckOrderEntryFlowIsStartedDoesNotRedirectWithRunningFlow()
        {
            TestableOrdersController controller = GetOrderControllerInitialized();

            controller.CurrentOrder = new Order();

            controller.VerifyOrderEntryFlowIsStarted();

            Assert.IsFalse(controller.MockOrderEntryFlowService.NavigateToDefaultViewCalled);
        }