public void UseBackupWhenAppropriate(DataStoreType appSetting, bool expectedOutcome) { TestAppSettings.SetDataStoreType(appSetting); var payment = new PaymentService(); Assert.AreEqual(expectedOutcome, payment.GetDataStore() is BackupAccountDataStore); }
public static void TestApp(this ICakeContext context, TestAppSettings settings) { var runner = new TestAppRunner( context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); runner.Run(settings); }
private static void Main() { Common.SetLocalException(); TestAppSettings.Create(); Console.WriteLine(TestAppSettings.Load()); TestConnectionStrings.Create(); Console.WriteLine(TestConnectionStrings.Load()); TestSection.Create(); Console.WriteLine(TestSection.Load()); Console.ReadKey(true); }