mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-17 23:03:46 +01:00
22 lines
539 B
C#
22 lines
539 B
C#
using System;
|
|
using System.IO;
|
|
using Xamarin.UITest;
|
|
using Xamarin.UITest.Queries;
|
|
|
|
namespace WireMock.Net.XamarinUI.Tests
|
|
{
|
|
public class AppInitializer
|
|
{
|
|
public static IApp StartApp(Platform platform)
|
|
{
|
|
if (platform == Platform.Android)
|
|
{
|
|
var androidAppConfigurator = ConfigureApp.Android.InstalledApp("test");
|
|
|
|
return androidAppConfigurator.StartApp();
|
|
}
|
|
|
|
return ConfigureApp.iOS.InstalledApp("test").StartApp();
|
|
}
|
|
}
|
|
} |