Testing script manager
This commit is contained in:
parent
f097600f7b
commit
b63f2eb3f7
3 changed files with 13 additions and 5 deletions
|
@ -3,6 +3,7 @@ using System.Linq;
|
|||
using BankingBot.Attributes;
|
||||
using BankingBot.Contracts;
|
||||
using BankingBot.Responses;
|
||||
using BankingBot.ScriptManagement;
|
||||
|
||||
namespace BankingBot.ActionManagers.LoginManagers
|
||||
{
|
||||
|
@ -14,8 +15,11 @@ namespace BankingBot.ActionManagers.LoginManagers
|
|||
|
||||
public Response Login(ILoginCredentials credentials)
|
||||
{
|
||||
// TODO: THIS NEEDS TO BE MOVED
|
||||
var scriptManager = new ScriptManager(BrowserBot);
|
||||
|
||||
var provLoginManagerType = GetActionTypeFromInterface(credentials, typeof(IProviderLoginManager));
|
||||
var provLoginManager = (IProviderLoginManager)Activator.CreateInstance(provLoginManagerType, BrowserBot);
|
||||
var provLoginManager = (IProviderLoginManager)Activator.CreateInstance(provLoginManagerType, BrowserBot, scriptManager);
|
||||
|
||||
return provLoginManager.Login(credentials);
|
||||
}
|
||||
|
|
|
@ -77,8 +77,12 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<Content Include="ScriptManagement\Scripts\global.js" />
|
||||
<Content Include="ScriptManagement\Scripts\jquery-3.1.1.min.js" />
|
||||
<Content Include="ScriptManagement\Scripts\global.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="ScriptManagement\Scripts\jquery-3.1.1.min.js">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="ScriptManagement\Scripts\test.js" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
|
|
|
@ -10,8 +10,8 @@ namespace BankingBot.ScriptManagement
|
|||
{
|
||||
public static string[] Global => new[]
|
||||
{
|
||||
"jquery-3.1.1.min",
|
||||
"global.js"
|
||||
"scripts/jquery-3.1.1.min",
|
||||
"scripts/global.js"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue