Ejemplo n.º 1
0
        public void AddSeguroCalculado()
        {
            var carro    = _carroServices.GetById(6);
            var segurado = _seguradoServices.GetById(5);

            var seguro = new Seguro()
            {
                Id         = 50,
                CarroId    = carro.Id,
                SeguradoId = segurado.Id,
                Carro      = carro,
                Segurado   = segurado
            };

            var retorno = _seguroServices.AddSeguroCalculado(seguro);

            Assert.NotNull(retorno);
            Assert.NotNull(retorno.PrecoSeguro > 0);
        }