Пример #1
0
        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();
        }
Пример #2
0
        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();
        }