コード例 #1
0
 public void Setup()
 {
     this.repository = Substitute.For <InMemoryAlarmRepository>();
     this.timer      = Substitute.For <ITimer>();
     this.service    = new AlarmService(this.repository, timer);
     this.service.Start();
 }
コード例 #2
0
ファイル: AlarmServiceTests.cs プロジェクト: zhiyix/Alarmy
 public void Setup()
 {
     this.repository = Substitute.For<InMemoryAlarmRepository>();
     this.timer = Substitute.For<ITimer>();
     this.service = new AlarmService(this.repository, timer);
     this.service.Start();
 }