public SeleniumTests(SeleniumServerFactory <Startup> server)
        {
            Server = server;
            Client = Server
                     .WithMoviesInDatabase(GetMovies())
                     .CreateClient();
            var opts = new ChromeOptions();

            opts.AddArgument("--headless");
            opts.SetLoggingPreference(OpenQA.Selenium.LogType.Browser, LogLevel.All);

            var driver = new RemoteWebDriver(opts);

            Browser = driver;
        }
        public UI_Movies_With_Administrator_User(SeleniumServerFactory <Startup> server)
        {
            Server = server;
            Client = Server
                     .WithMoviesInDatabase(MoviesCatalog.GetMovies())
                     .WithUserLoggedIn(
                new MockIdentityBuilder()
                .WithRole("Administrator")
                .Identity)
                     .CreateClient();
            var opts = new ChromeOptions();

            opts.AddArgument("--headless");
            opts.SetLoggingPreference(OpenQA.Selenium.LogType.Browser, LogLevel.All);

            var driver = new RemoteWebDriver(opts);

            Browser = driver;
        }