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