public static void ShutdownAllAppleSimulators(this ICakeContext context, SimCtlSettings settings)
        {
            ThrowIfNotRunningOnMac(context);

            var runner = new SimCtlRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools,
                                          context.Log, settings);

            runner.ShutdownSimulators();
        }
        public static IReadOnlyList <AppleSimulator> ListAppleSimulators(this ICakeContext context,
                                                                         SimCtlSettings settings)
        {
            ThrowIfNotRunningOnMac(context);

            var runner = new SimCtlRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools,
                                          context.Log, settings);

            return(runner.ListSimulators());
        }
        public static void EraseAppleSimulator(this ICakeContext context, string deviceIdentifier,
                                               SimCtlSettings settings)
        {
            if (string.IsNullOrWhiteSpace(deviceIdentifier))
            {
                throw new ArgumentException(nameof(deviceIdentifier));
            }

            ThrowIfNotRunningOnMac(context);

            var runner = new SimCtlRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools,
                                          context.Log, settings);

            runner.EraseSimulator(deviceIdentifier);
        }
        public static TestResults TestiOSApplication(this ICakeContext context, string deviceIdentifier,
                                                     string appIdentifier, SimCtlSettings settings)
        {
            if (string.IsNullOrWhiteSpace(deviceIdentifier))
            {
                throw new ArgumentException(nameof(deviceIdentifier));
            }

            ThrowIfNotRunningOnMac(context);

            var runner = new SimCtlRunner(context.FileSystem, context.Environment, context.ProcessRunner,
                                          context.Tools, context.Log, settings);

            return(runner.TestApplication(deviceIdentifier, appIdentifier));
        }
        public static void EraseAllAppleSimulators(this ICakeContext context, SimCtlSettings settings)
        {
            ThrowIfNotRunningOnMac(context);

            throw new NotImplementedException();
        }