コード例 #1
0
 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();
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public void SetUp()
 {
     downloader = new FakeHttpFetcher("foo");
     SmeedeeApp.Instance.ServiceLocator.Bind<IFetchHttp>(downloader);
     SmeedeeApp.Instance.ServiceLocator.Bind<IBackgroundWorker>(new NoBackgroundInvocation());
     SmeedeeApp.Instance.ServiceLocator.Bind<IPersistenceService>(new FakePersistenceService());
     SmeedeeApp.Instance.ServiceLocator.Bind<IValidationService>(new FakeValidationService());
     SmeedeeApp.Instance.ServiceLocator.Bind<ILog>(new FakeLogService());
     service = new BuildStatusService();
 }
コード例 #4
0
 public void SetUp()
 {
     downloader = new FakeHttpFetcher("foo");
     SmeedeeApp.Instance.ServiceLocator.Bind <IFetchHttp>(downloader);
     SmeedeeApp.Instance.ServiceLocator.Bind <IBackgroundWorker>(new NoBackgroundInvocation());
     SmeedeeApp.Instance.ServiceLocator.Bind <IPersistenceService>(new FakePersistenceService());
     SmeedeeApp.Instance.ServiceLocator.Bind <IValidationService>(new FakeValidationService());
     SmeedeeApp.Instance.ServiceLocator.Bind <ILog>(new FakeLogService());
     service = new BuildStatusService();
 }