Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 protected override void Given()
 {
     sr = Substitute.For<SourceRepoDriver>();
     bus = Substitute.For<IBus>();
     rc = new Domain.RevisionChecker(bus, url => sr);
 }