Exemplo n.º 1
0
        public void TestAllDemandsAreSatisfiedWithinProviderTable()
        {
            IZppSimulator zppSimulator = new global::Master40.SimulationMrp.impl.ZppSimulator();

            zppSimulator.StartTestCycle();

            IDbTransactionData dbTransactionData =
                ZppConfiguration.CacheManager.ReloadTransactionData();

            Demands   demands            = dbTransactionData.DemandsGetAll();
            Providers providers          = dbTransactionData.ProvidersGetAll();
            Demands   unsatisfiedDemands = providers.CalculateUnsatisfiedDemands(demands);

            foreach (var unsatisfiedDemand in unsatisfiedDemands)
            {
                Assert.True(false,
                            $"The demand {unsatisfiedDemand} should be satisfied, but it is NOT.");
            }
        }