public void Setup()
 {
     this.timer = Substitute.For<ITimer>();
     this.service = Substitute.For<FakeAlarmService>();
     this.manager = new MissedAlarmReminderManager(service, timer);
 }
Beispiel #2
0
 public void Setup()
 {
     this.view = Substitute.For<FakeMainView>();
     this.alarmService = Substitute.For<FakeAlarmService>();
     this.alarmManager = Substitute.For<IAlarmManager>();
     this.alarmReminderManager = Substitute.For<IAlarmReminderManager>();
     this.alarmFactory = Substitute.For<IAlarmFactory>();
     this.importer = Substitute.For<IImporter>();
     this.settings = new Settings();
     this.viewModel = new MainViewModel(this.view, this.alarmService, this.alarmManager, this.alarmReminderManager, this.alarmFactory, this.importer, this.settings);
 }
Beispiel #3
0
 public void Setup()
 {
     this.service = Substitute.For<FakeAlarmService>();
     this.importer = new CSVImporter(this.service);
     this.importContext = new ImportContext {
         CaptionFormat = "{0}",
         CaptionPatterns = new [] { "\\W+" },
         DateFormat = "dd.MM.yyyy HH:mm"
     };
 }