Skip to content

Commit

Permalink
Merge pull request #133 from MADE-Apps/feature/pageobjectgenerator
Browse files Browse the repository at this point in the history
Removed Shouldly using statement from template
  • Loading branch information
jamesmcroft authored Jun 6, 2022
2 parents 1eb33f6 + 3be3b91 commit b8d7181
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 7 additions & 4 deletions tools/Legerity.Uno.PageObjectGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ namespace Legerity.Uno;

public class Program
{
public static void Main(string[] args)
public static async Task Main(string[] args)
{
SerilogConfigurator.ConfigureLogging();
Parser.Default.ParseArguments<Options>(args)
await Parser.Default.ParseArguments<Options>(args)
.WithNotParsed(errors =>
{
foreach (Error? error in errors)
Expand All @@ -30,8 +30,11 @@ public static void Main(string[] args)
{
Directory.CreateDirectory(options.OutputPath);
}

await new XamlPageObjectGenerator().GenerateAsync(options.Namespace, options.InputPath, options.OutputPath);

await new XamlPageObjectGenerator().GenerateAsync(
options.Namespace,
options.InputPath,
options.OutputPath);

Log.Information("Finished generating Legerity for Uno Platform page objects!");
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ using Legerity.Uno.Extensions;
using OpenQA.Selenium;
using OpenQA.Selenium.Appium.Windows;
using OpenQA.Selenium.Remote;
using Shouldly;
using ByExtensions = Legerity.Windows.Extensions.ByExtensions;

namespace {{namespace}}
Expand Down

0 comments on commit b8d7181

Please sign in to comment.