public void NotaFiscal_IntegracaoSistema_PegarPorId_DevePegarPorId()
        {
            NotaFiscal nota = ObjectMother.ObterNotaValida();

            nota = notaFiscalServico.Salvar(nota);

            NotaFiscal notaObtida = notaFiscalServico.PegarPorId(nota.Id);

            notaObtida.Id.Should().Be(nota.Id);
        }
        public void NotaFiscal_Aplicacao_PegarPorId_DevePegarOk()
        {
            NotaFiscal nota = ObjectMother.ObterNotaValida();

            nota.Id = 1;
            mockRepositorio.Setup(x => x.PegarPorId(nota.Id)).Returns(nota);

            NotaFiscal notaObtida = notaFiscalServico.PegarPorId(nota.Id);

            notaObtida.Id.Should().BeGreaterThan(0);
            mockRepositorio.Verify(x => x.PegarPorId(nota.Id));
            mockRepositorio.VerifyNoOtherCalls();
        }