protected override void Arrange() { FakeSystemClock fakeSystemClock = new FakeSystemClock(new DateTime(2010, 9, 21, 5, 13, 59)); _previousResult = Mockery.DynamicMock<IIntegrationResult>(); using (_mockery.Record()) { Expect.Call(_previousResult.Label).Return("1.0.31.0"); SetupResult.For(_previousResult.LastIntegrationStatus).Return(IntegrationStatus.Success); } _mockery.ReplayAll(); _labeller = new SvnRevisionLabellerStub(fakeSystemClock) { Pattern = "1.0.0.{msrevision}" }; _labeller.SetRevision(0); }
protected override void Arrange() { FakeSystemClock fakeSystemClock = new FakeSystemClock(new DateTime(2010, 9, 21, 5, 13, 59)); _previousResult = Mockery.DynamicMock <IIntegrationResult>(); using (_mockery.Record()) { Expect.Call(_previousResult.Label).Return("1.0.31.0"); SetupResult.For(_previousResult.LastIntegrationStatus).Return(IntegrationStatus.Success); } _mockery.ReplayAll(); _labeller = new SvnRevisionLabellerStub(fakeSystemClock) { Pattern = "1.0.0.{msrevision}" }; _labeller.SetRevision(0); }