コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }