public async void WhenUpdateDatabaseIsCalled_ThenCountEqualsAmountOfOrders()
        {
            // Call UpdateDatabase
            var(count, _) = await _databaseUpdater.UpdateDatabase();

            // Get orders from IOrderRepository
            var orders = await _orderRepositoryMock.Object.GetOrders();

            // Verify count is equal to amount of orders
            Assert.Equal(orders.Count(), count);
        }
        private async void UpdateDatabase()
        {
            var response = await _databaseUpdater.UpdateDatabase();

            _view.ProgressBarLength = response.count;
            _view.Status            = "Updating Database";

            await foreach (var task in response.tasks)
            {
                _view.ProgressBarProgress += 1;
            }
            _view.ProgressBarProgress = 0;
            _view.Status = string.Empty;
        }