protected void SetUpFixtureData() { lastBuild = IntegrationResultMother.CreateSuccessful(CreateDateTime(12, 01, 00)); thisBuild = IntegrationResultMother.CreateSuccessful(CreateDateTime(12, 02, 00)); mods = new Modification[] { CreateModificationAtTime(12, 01, 30) }; mockSourceControl = new Mock <ISourceControl>(MockBehavior.Strict); mockDateTimeProvider = new Mock <DateTimeProvider>(MockBehavior.Strict); quietPeriod = new QuietPeriod((DateTimeProvider)mockDateTimeProvider.Object); }
protected void SetUpFixtureData() { lastBuild = IntegrationResultMother.CreateSuccessful(CreateDateTime(12, 01, 00)); thisBuild = IntegrationResultMother.CreateSuccessful(CreateDateTime(12, 02, 00)); mods = new Modification[] { CreateModificationAtTime(12, 01, 30) }; mockSourceControl = new DynamicMock(typeof(ISourceControl)); mockSourceControl.Strict = true; mockDateTimeProvider = new DynamicMock(typeof(DateTimeProvider)); mockDateTimeProvider.Strict = true; quietPeriod = new QuietPeriod((DateTimeProvider)mockDateTimeProvider.MockInstance); }