public void ProcessFillOrder_On_Already_Closed_Order()
        {
            var fillOrderRepo = new FillOrderRepo();

            fillOrderRepo.CreateFillOrder();
            FillOrderService fillOrderService = new FillOrderService(fillOrderRepo);
            var orders      = fillOrderService.ViewOpenOrders();
            var singleOrder = orders.First();
            var closedOrder = fillOrderService.ProcessFillOrder(singleOrder.Id);

            Assert.Throws <Exception>(() => fillOrderService.ProcessFillOrder(closedOrder.Id));
        }
        public void ProcessFillOrder_On_Open_Order()
        {
            //Because the database is already in memory, it just calls this directly. Normally would use an in memory database to mock out the real one.
            var fillOrderRepo = new FillOrderRepo();

            fillOrderRepo.CreateFillOrder();
            FillOrderService fillOrderService = new FillOrderService(fillOrderRepo);
            var orders      = fillOrderService.ViewOpenOrders();
            var singleOrder = orders.First();
            var closedOrder = fillOrderService.ProcessFillOrder(singleOrder.Id);

            Assert.True(closedOrder.OrderClosed);
        }