Пример #1
0
 protected override void Given()
 {
     sr = Substitute.For<SourceRepoDriver>();
     sr.GetLatestRevision().Returns(new RevisionInfo { Revision = "456" });
     bus = Substitute.For<IBus>();
     rc = new Domain.RevisionChecker(bus, url => sr);
 }
Пример #2
0
 protected override void Given()
 {
     sr = Substitute.For<SourceRepoDriver>();
     sr.When(driver => driver.GetLatestRevision()).Do(info => {throw new TimeoutException();});
     bus = Substitute.For<IBus>();
     rc = new Domain.RevisionChecker(bus, url => sr);
 }
Пример #3
0
 protected override void Given()
 {
     sr = Substitute.For<SourceRepoDriver>();
     bus = Substitute.For<IBus>();
     rc = new Domain.RevisionChecker(bus, url => sr);
 }