main
 1using System.Collections.Generic;
 2using MoMoney.DTO;
 3using MoMoney.Presentation.Core;
 4using MoMoney.Presentation.Presenters;
 5using MoMoney.Presentation.Views;
 6using MoMoney.Service.Contracts.Application;
 7
 8namespace momoney.presentation.presenters
 9{
10    public interface IViewAllBillsPresenter : IContentPresenter
11    {
12    }
13
14    public class ViewAllBillsPresenter : ContentPresenter<IViewAllBills>, IViewAllBillsPresenter
15    {
16        readonly ICommandPump pump;
17
18        public ViewAllBillsPresenter(IViewAllBills view, ICommandPump pump) : base(view)
19        {
20            this.pump = pump;
21        }
22
23        public override void run()
24        {
25            view.attach_to(this);
26            pump.run<IEnumerable<BillInformationDTO>, IGetAllBillsQuery>(view);
27        }
28    }
29}