Пример #1
0
        public void NotaFiscal_InfraData_Salvar_DeveInserirOK()
        {
            notaFiscal = ObjectMother.ObterNotaValida();
            notaFiscal.Destinatario.Id  = 1;
            notaFiscal.Emitente.Id      = 1;
            notaFiscal.Transportador.Id = 1;
            notaFiscal.GerarChaveAcesso();

            NotaFiscal _notaInserida = repositorio.Salvar(notaFiscal);

            var idEsperado = 2;

            _notaInserida.Id.Should().Be(idEsperado);
        }