/// <summary> /// Construtor serviço nota fiscal /// </summary> /// <param name="notaFiscalBusiness">Objeto de negócio</param> /// <param name="impostoUtil">Objeto utilitário</param> /// <param name="notaFiscalRepository">Repositório de dados</param> public NotaFiscalService(NotaFiscalBusiness notaFiscalBusiness, ImpostoUtil impostoUtil, NotaFiscalRepository notaFiscalRepository) { this.notaFiscalBusiness = notaFiscalBusiness; this.impostoUtil = impostoUtil; this.notaFiscalRepository = notaFiscalRepository; }
public FormImposto(INotaFiscalService notaFiscalService, IImpostoUtil impostoUtil) { InitializeComponent(); dataGridViewPedidos.AutoGenerateColumns = true; dataGridViewPedidos.DataSource = GetTablePedidos(); ResizeColumns(); this.notaFiscalService = notaFiscalService; this.impostoUtil = impostoUtil; }