예제 #1
0
        public void CalcularPrecioArte_TintasMayora1_RetornaPrecioArtePorTintas()
        {
            var cotizacion = new Cotizacion
            {
                Tintas   = 5,
                Material = new Material(),
                Empresa  = new Empresa {
                    EmpresaConfig = new EmpresaConfig {
                        PrecioArte = 10m
                    }
                }
            };

            var instance = new Estimator(cotizacion);

            instance.CalcularPrecioArte();

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