コード例 #1
0
        public void CalcularPrecioSolvente_TintasMayora1_RetornaPrecioSolventePorTintas()
        {
            var cotizacion = new Cotizacion
            {
                Tintas   = 5,
                Material = new Material(),
                Empresa  = new Empresa {
                    EmpresaConfig = new EmpresaConfig {
                        PrecioSolvente = 10m
                    }
                }
            };
            var instance = new Estimator(cotizacion);

            instance.CalcularPrecioSolvente();

            Assert.AreEqual(50, cotizacion.PrecioSolvente);
        }