コード例 #1
0
        public static void Clear(IntegrationTestsFixture fixture)
        {
            var deploymentProcessSettings = fixture.Resolve <DeploymentProcessSettings>();
            var workingDir = deploymentProcessSettings.WorkingDir.ToString();

            if (Directory.Exists(workingDir))
            {
                Directory.Delete(workingDir, recursive: true);
            }
        }
コード例 #2
0
ファイル: TestClock.cs プロジェクト: sheepit/sheepit
 public static DateTime GetUtcNow(this IntegrationTestsFixture fixture)
 {
     return(fixture.Resolve <TestClock>().UtcNow);
 }
コード例 #3
0
ファイル: TestClock.cs プロジェクト: sheepit/sheepit
 public static void SetUtcNow(this IntegrationTestsFixture fixture, DateTime dateTime)
 {
     fixture.Resolve <TestClock>().UtcNow = dateTime;
 }