Beispiel #1
0
        public void Setup()
        {
            _interactor            = MockRepository.GenerateMock <ISchedulerInteractor>();
            _authorisationProvider = MockRepository.GenerateMock <ISchedulerAuthorisationProvider>();
            _browser = new Browser(with =>
            {
                with.Module <SchedulerModule>();
                with.Dependency <ISchedulerInteractor>(_interactor);
                with.Dependency <ISchedulerAuthorisationProvider>(_authorisationProvider);
            });

            _authorisationProvider.Expect(i => i.IsAuthorisedForOperation(null))
            .IgnoreArguments().Return(true).Repeat.Any();
        }