Пример #1
0
        public void CalcularTotalUsd()
        {
            const decimal totalCol   = 5000;
            var           cotizacion = new Cotizacion
            {
                TotalCol   = totalCol,
                Material   = new Material(),
                TipoCambio = new TipoCambio {
                    Monto = 500
                }
            };
            var instance = new Estimator(cotizacion);

            instance.CalcularTotalUsd();

            Assert.AreEqual(10, cotizacion.TotalUsd);
        }