public void Should_Calculate_The_Total_Tax()
        {
            var fakeOrdersHandler = new FakeOrdersHandler();
            IPriceTable priceTable = new FakePriceTable();
            var myManager = new AssistantManager(fakeOrdersHandler, priceTable);

            myManager.Handle(SampleOrders.CreateSampleOrder());

            Assert.That(fakeOrdersHandler.OrdersToBeHandled[0].TotalTax, Is.EqualTo(20));
        }
        public void Shoul_Pass_The_Order_Forward()
        {
            var fakeOrdersHandler = new FakeOrdersHandler();
            IPriceTable priceTable = new FakePriceTable();
            var myManager = new AssistantManager(fakeOrdersHandler, priceTable);

            myManager.Handle(SampleOrders.CreateSampleOrder());

            Assert.That(fakeOrdersHandler.OrdersToBeHandled.Count, Is.EqualTo(1));
        }
        public void Should_Calculate_The_Price_For_Each_Item()
        {
            var fakeOrdersHandler = new FakeOrdersHandler();
            IPriceTable priceTable = new FakePriceTable();
            var myManager = new AssistantManager(fakeOrdersHandler, priceTable);

            myManager.Handle(SampleOrders.CreateSampleOrder());

            Assert.That(fakeOrdersHandler.OrdersToBeHandled[0].Items[0].Price, Is.EqualTo(60));
            Assert.That(fakeOrdersHandler.OrdersToBeHandled[0].Items[1].Price, Is.EqualTo(40));
        }