public void SetUp()
        {
            SmeedeeApp.Instance.ServiceLocator.Bind <IBackgroundWorker>(new NoBackgroundInvocation());

            fakeService     = new UnitTests.Fakes.FakeLatestCommitsService();
            countingService = new CallCountingLatestCommitsService();
            fakePersistence = new FakePersistenceService();

            SmeedeeApp.Instance.ServiceLocator.Bind <ILatestCommitsService>(fakeService);
            SmeedeeApp.Instance.ServiceLocator.Bind <IPersistenceService>(fakePersistence);

            model = new LatestCommits();
        }
 private void Initialize()
 {
     model = new LatestCommits();
     InflateLayout();
     Refresh();
 }
Example #3
0
 public LatestCommitsViewModel()
 {
     model = new LatestCommits();
     Items = new ObservableCollection <LatestCommitsItemViewModel>();
 }
Example #4
0
 public LatestCommitsConfigTableViewSource(UITableViewController controller)
     : base(SmeedeeApp.Instance.AvailableWidgets.Where(e => e.SettingsType == typeof(LatestCommitsConfigTableViewController)).First())
 {
     this.model = new LatestCommits();
 }
Example #5
0
 public LatestCommitsTableSource(LatestCommitsWidget controller, LatestCommits model)
 {
     this.model      = model;
     this.controller = controller;
 }
Example #6
0
 public LatestCommitsWidget() : base("LatestCommits", null)
 {
     model = new LatestCommits();
 }