public InvoiceBatchesPresenter(IInvoiceBatchesView view, IBatchRepository repository) { ArgumentChecker.ThrowIfNull(view, "view"); ArgumentChecker.ThrowIfNull(repository, "repository"); this.view = view; this.repository = repository; }
public static InvoiceBatchesPresenter Create(IInvoiceBatchesView view) { return(new InvoiceBatchesPresenter(view, RepositoryFactory.CreateBatchRepository())); }