public void Setup()
        {
            //Here we're doing all of the set up for this clump of tests.

            // Mocks basically allow us to pretend like we have a class
            // when we really don't just so the program runs. This really
            // comes in handy when you have a large interface and don't want to
            // create a huge real class that has to have a bunch of empty methods
            // that never get called.
            Interactions = MockRepository.GenerateStub<IInteractionContext>();
            FileSync = MockRepository.GenerateStub<IFileSync>();
            BackupAccess = MockRepository.GenerateStub<IBackupAccess>();
            Settings = MockRepository.GenerateStub<ISettingsProvider>();
            BackupRunner = new RunBackup(FileSync, Interactions, Settings, BackupAccess);

            Context();
            Because();
        }
        protected override void Context()
        {
            var fileSync = new FakeFileSync();
            Gui = new TestInteractionContext();

            BackupRunner = new RunBackup(fileSync, Gui, null, null);

            var appliedChangeEventArgs = new MyAppliedChangeEventArgs();

            BackupRunner.OnAppliedChange(null, appliedChangeEventArgs);
        }
 protected override void Context()
 {
     Interactions.Stub(x => x.AlertCreated(null)).Constraints(Is.Anything());
     BackupRunner = new RunBackup(FileSync, Interactions, null, null);
 }