using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BankingBot.Contracts; using BankingBot.LoginManagers; using OpenQA.Selenium; namespace BankingBot { public class Client : IClient where T : IWebDriver { #region Dependencies private readonly ILoginManager _loginManager; protected readonly IBrowserBot BrowserBot; #endregion public ILoginCredentials LoginCredentials { get; private set; } public Client() { BrowserBot = new BrowserBot(); _loginManager = new LoginManager(BrowserBot); } public void Login(ILoginCredentials credentials) { this.LoginCredentials = credentials; _loginManager.Login(credentials); } } }