public LatestCommits() { service = SmeedeeApp.Instance.ServiceLocator.Get <ILatestCommitsService>(); persistence = SmeedeeApp.Instance.ServiceLocator.Get <IPersistenceService>(); Commits = new List <Commit>(); HasMore = true; }
public LatestCommits() { service = SmeedeeApp.Instance.ServiceLocator.Get<ILatestCommitsService>(); persistence = SmeedeeApp.Instance.ServiceLocator.Get<IPersistenceService>(); Commits = new List<Commit>(); HasMore = true; }
public void SetUp() { downloader = new FakeHttpFetcher("foo"); app.ServiceLocator.Bind<IFetchHttp>(downloader); app.ServiceLocator.Bind<IBackgroundWorker>(new NoBackgroundInvocation()); app.ServiceLocator.Bind<IPersistenceService>(new FakePersistenceService()); app.ServiceLocator.Bind<ILog>(new FakeLogService()); service = new LatestCommitsService(); }
public void SetUp() { downloader = new FakeHttpFetcher("foo"); app.ServiceLocator.Bind <IFetchHttp>(downloader); app.ServiceLocator.Bind <IBackgroundWorker>(new NoBackgroundInvocation()); app.ServiceLocator.Bind <IPersistenceService>(new FakePersistenceService()); app.ServiceLocator.Bind <ILog>(new FakeLogService()); service = new LatestCommitsService(); }