public void UseBackupWhenAppropriate(DataStoreType appSetting, bool expectedOutcome)
        {
            TestAppSettings.SetDataStoreType(appSetting);
            var payment = new PaymentService();

            Assert.AreEqual(expectedOutcome, payment.GetDataStore() is BackupAccountDataStore);
        }
Beispiel #2
0
        public static void TestApp(this ICakeContext context, TestAppSettings settings)
        {
            var runner = new TestAppRunner(
                context.FileSystem,
                context.Environment,
                context.ProcessRunner,
                context.Tools);

            runner.Run(settings);
        }
Beispiel #3
0
 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);
 }