Пример #1
0
        public static TestApplication RunWinApplication(this IApplicationAdapter adapter, string fileName, int port = 4100)
        {
            var testApplication = EasyTestWinApplication.New(fileName, port);

            adapter.RunApplication(testApplication, null);
            return(testApplication);
        }
Пример #2
0
        public static TestApplication RunWinApplication(this IApplicationAdapter adapter, string fileName, string connectionString)
        {
            foreach (var file in Directory.GetFiles($"{Path.GetDirectoryName(fileName)}", "Model.User.xafml"))
            {
                File.Delete(file);
            }
            var testApplication = EasyTestWinApplication.New(fileName);

            testApplication.ConfigSettings(connectionString);
            adapter.RunApplication(testApplication, null);
            return(testApplication);
        }
Пример #3
0
 public static EasyTestWinApplication New(string physicalPath, int port = 4100)
 {
     Instance = new EasyTestWinApplication(physicalPath, port);
     return(Instance);
 }