From f5e9908e8304ebec36cab79ab87553c94df6fdba Mon Sep 17 00:00:00 2001 From: Aaron Yarborough Date: Mon, 13 Feb 2017 13:13:27 +0000 Subject: [PATCH] Refactoring --- .../LoginManagers/BarclaysLoginManager.cs | 1 - .../LoginManagers/LloydsLoginManager.cs | 3 --- .../LoginManagers/LoginManager.cs | 3 --- BankingBot/BankingBot.csproj | 2 -- BankingBot/BankingClient.cs | 1 - BankingBot/Contracts/IClient.cs | 4 +--- BankingBot/Contracts/ILoginManager.cs | 4 +--- BankingBot/Contracts/IProviderLoginManager.cs | 4 +--- .../LoginCredentials/LloydsLoginCredentials.cs | 8 +------- BankingBot/LoginCredentials/LoginCredentials.cs | 7 +------ BankingBot/Responses/LoginResponse.cs | 14 -------------- BankingBot/Responses/Response.cs | 17 ----------------- 12 files changed, 5 insertions(+), 63 deletions(-) delete mode 100644 BankingBot/Responses/LoginResponse.cs delete mode 100644 BankingBot/Responses/Response.cs diff --git a/BankingBot/ActionManagers/LoginManagers/BarclaysLoginManager.cs b/BankingBot/ActionManagers/LoginManagers/BarclaysLoginManager.cs index c83103a..2571ef8 100644 --- a/BankingBot/ActionManagers/LoginManagers/BarclaysLoginManager.cs +++ b/BankingBot/ActionManagers/LoginManagers/BarclaysLoginManager.cs @@ -2,7 +2,6 @@ using BankingBot.Contracts; using BankingBot.Enums; using BankingBot.LoginCredentials; -using BankingBot.Responses; using System.Collections.Generic; using BankingBot.ScriptManagement; diff --git a/BankingBot/ActionManagers/LoginManagers/LloydsLoginManager.cs b/BankingBot/ActionManagers/LoginManagers/LloydsLoginManager.cs index e0e98bc..b688c60 100644 --- a/BankingBot/ActionManagers/LoginManagers/LloydsLoginManager.cs +++ b/BankingBot/ActionManagers/LoginManagers/LloydsLoginManager.cs @@ -1,13 +1,10 @@ using System; -using System.Collections.Generic; using System.Text.RegularExpressions; using BankingBot.Attributes; using BankingBot.Contracts; using BankingBot.LoginCredentials; using OpenQA.Selenium; -using BankingBot.Responses; using BankingBot.Enums; -using BankingBot.ScriptManagement; using BankingBot.Urls; using BankingBot.Exceptions; diff --git a/BankingBot/ActionManagers/LoginManagers/LoginManager.cs b/BankingBot/ActionManagers/LoginManagers/LoginManager.cs index cfd87f1..a0ab6c4 100644 --- a/BankingBot/ActionManagers/LoginManagers/LoginManager.cs +++ b/BankingBot/ActionManagers/LoginManagers/LoginManager.cs @@ -1,8 +1,5 @@ using System; -using System.Linq; -using BankingBot.Attributes; using BankingBot.Contracts; -using BankingBot.Responses; using BankingBot.ScriptManagement; namespace BankingBot.ActionManagers.LoginManagers diff --git a/BankingBot/BankingBot.csproj b/BankingBot/BankingBot.csproj index 7ba7802..2731ea6 100644 --- a/BankingBot/BankingBot.csproj +++ b/BankingBot/BankingBot.csproj @@ -77,8 +77,6 @@ - - diff --git a/BankingBot/BankingClient.cs b/BankingBot/BankingClient.cs index d2ee02f..3eba517 100644 --- a/BankingBot/BankingClient.cs +++ b/BankingBot/BankingClient.cs @@ -5,7 +5,6 @@ using BankingBot.ActionManagers.LoginManagers; using BankingBot.Models; using OpenQA.Selenium; using BankingBot.ActionManagers.AccountManagers; -using BankingBot.Responses; using BankingBot.Enums; namespace BankingBot diff --git a/BankingBot/Contracts/IClient.cs b/BankingBot/Contracts/IClient.cs index 1cba793..387118b 100644 --- a/BankingBot/Contracts/IClient.cs +++ b/BankingBot/Contracts/IClient.cs @@ -1,7 +1,5 @@ -using System.Collections; -using System.Collections.Generic; +using System.Collections.Generic; using BankingBot.Models; -using BankingBot.Responses; namespace BankingBot.Contracts { diff --git a/BankingBot/Contracts/ILoginManager.cs b/BankingBot/Contracts/ILoginManager.cs index 7ebc6a1..18cda3b 100644 --- a/BankingBot/Contracts/ILoginManager.cs +++ b/BankingBot/Contracts/ILoginManager.cs @@ -1,6 +1,4 @@ -using BankingBot.Responses; - -namespace BankingBot.Contracts +namespace BankingBot.Contracts { public interface ILoginManager { diff --git a/BankingBot/Contracts/IProviderLoginManager.cs b/BankingBot/Contracts/IProviderLoginManager.cs index ad504f3..22479d7 100644 --- a/BankingBot/Contracts/IProviderLoginManager.cs +++ b/BankingBot/Contracts/IProviderLoginManager.cs @@ -1,6 +1,4 @@ -using BankingBot.Responses; - -namespace BankingBot.Contracts +namespace BankingBot.Contracts { public interface IProviderLoginManager { diff --git a/BankingBot/LoginCredentials/LloydsLoginCredentials.cs b/BankingBot/LoginCredentials/LloydsLoginCredentials.cs index 4ee4ea0..e52cd9c 100644 --- a/BankingBot/LoginCredentials/LloydsLoginCredentials.cs +++ b/BankingBot/LoginCredentials/LloydsLoginCredentials.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using BankingBot.Attributes; -using BankingBot.Contracts; +using BankingBot.Attributes; namespace BankingBot.LoginCredentials { diff --git a/BankingBot/LoginCredentials/LoginCredentials.cs b/BankingBot/LoginCredentials/LoginCredentials.cs index ea501de..69d95bb 100644 --- a/BankingBot/LoginCredentials/LoginCredentials.cs +++ b/BankingBot/LoginCredentials/LoginCredentials.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using BankingBot.Attributes; +using BankingBot.Attributes; using BankingBot.Contracts; using BankingBot.Enums; diff --git a/BankingBot/Responses/LoginResponse.cs b/BankingBot/Responses/LoginResponse.cs deleted file mode 100644 index 947b982..0000000 --- a/BankingBot/Responses/LoginResponse.cs +++ /dev/null @@ -1,14 +0,0 @@ -using BankingBot.Enums; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace BankingBot.Responses -{ - public class LoginResponse : Response - { - Provider Provider { get; } - } -} diff --git a/BankingBot/Responses/Response.cs b/BankingBot/Responses/Response.cs deleted file mode 100644 index b1410c9..0000000 --- a/BankingBot/Responses/Response.cs +++ /dev/null @@ -1,17 +0,0 @@ -using BankingBot.Contracts; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using BankingBot.Enums; - -namespace BankingBot.Responses -{ - public class Response : IResponse - { - public Exception Exception { get; set; } - - public ResponseStatus Status { get; set; } - } -}