diff --git a/BankingBot/ActionManagers/AccountManagers/AccountManager.cs b/BankingBot/ActionManagers/AccountManagers/AccountManager.cs index 2d16c87..d75dc66 100644 --- a/BankingBot/ActionManagers/AccountManagers/AccountManager.cs +++ b/BankingBot/ActionManagers/AccountManagers/AccountManager.cs @@ -1,12 +1,23 @@ -using System; +using BankingBot.Contracts; +using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using BankingBot.Models; namespace BankingBot.ActionManagers.AccountManagers { - class AccountManager + public class AccountManager : ActionManager, IAccountManager { + public AccountManager(IBrowserBot browserBot) + : base(browserBot) + { + } + + public IEnumerable GetAccounts() + { + throw new NotImplementedException(); + } } } diff --git a/BankingBot/BankingBot.csproj b/BankingBot/BankingBot.csproj index 5e07ae3..e73adf6 100644 --- a/BankingBot/BankingBot.csproj +++ b/BankingBot/BankingBot.csproj @@ -51,6 +51,7 @@ + diff --git a/BankingBot/Client.cs b/BankingBot/Client.cs index 5e2d749..b3b78e8 100644 --- a/BankingBot/Client.cs +++ b/BankingBot/Client.cs @@ -7,6 +7,7 @@ using BankingBot.Contracts; using BankingBot.ActionManagers.LoginManagers; using BankingBot.Models; using OpenQA.Selenium; +using BankingBot.ActionManagers.AccountManagers; namespace BankingBot { @@ -15,6 +16,8 @@ namespace BankingBot { #region Dependencies private readonly ILoginManager _loginManager; + private readonly IAccountManager _accountManager; + protected readonly IBrowserBot BrowserBot; #endregion @@ -28,10 +31,12 @@ namespace BankingBot public Client() { BrowserBot = new BrowserBot(); + _loginManager = new LoginManager(BrowserBot); + _accountManager = new AccountManager(BrowserBot); } - #region Actions + #region Actions - Login Manager public void Login(ILoginCredentials credentials) { @@ -40,14 +45,18 @@ namespace BankingBot LoginCredentials = credentials; } + #endregion + public decimal GetBalance() { throw new NotImplementedException(); } + #region Actions - Account Manager + public IEnumerable GetAccounts() { - throw new NotImplementedException(); + return _accountManager.GetAccounts(); } #endregion diff --git a/BankingBot/Contracts/IAccountManager.cs b/BankingBot/Contracts/IAccountManager.cs new file mode 100644 index 0000000..6fcc63d --- /dev/null +++ b/BankingBot/Contracts/IAccountManager.cs @@ -0,0 +1,10 @@ +using BankingBot.Models; +using System.Collections.Generic; + +namespace BankingBot.Contracts +{ + public interface IAccountManager + { + IEnumerable GetAccounts(); + } +}