use correct class
This commit is contained in:
parent
a52e56835b
commit
e0a194cd61
@ -10,7 +10,7 @@ namespace AssortValidator.Common.Helpers
|
|||||||
public static class AssortHelper
|
public static class AssortHelper
|
||||||
{
|
{
|
||||||
private static Dictionary<Trader, Assort> _assortDataCache;
|
private static Dictionary<Trader, Assort> _assortDataCache;
|
||||||
private static Dictionary<Trader, LiveAssort> _assortLiveDataCache;
|
private static Dictionary<Trader, Assort> _assortLiveDataCache;
|
||||||
|
|
||||||
public static Dictionary<Trader, Assort> GetAssortData()
|
public static Dictionary<Trader, Assort> GetAssortData()
|
||||||
{
|
{
|
||||||
@ -74,16 +74,16 @@ namespace AssortValidator.Common.Helpers
|
|||||||
return Trader.Unknown;
|
return Trader.Unknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Dictionary<Trader, LiveAssort> GetLiveAssortData()
|
public static Dictionary<Trader, Assort> GetLiveAssortData()
|
||||||
{
|
{
|
||||||
if (_assortLiveDataCache == null)
|
if (_assortLiveDataCache == null)
|
||||||
{
|
{
|
||||||
_assortLiveDataCache = new Dictionary<Trader, LiveAssort>();
|
_assortLiveDataCache = new Dictionary<Trader, Assort>();
|
||||||
foreach (var filePath in InputFileHelper.GetInputFilePaths().Where(x => x.Contains("resp.client.trading.api.getTraderAssort")))
|
foreach (var filePath in InputFileHelper.GetInputFilePaths().Where(x => x.Contains("resp.client.trading.api.getTraderAssort")))
|
||||||
{
|
{
|
||||||
var traderType = GetTraderType(filePath);
|
var traderType = GetTraderType(filePath);
|
||||||
var json = File.ReadAllText(filePath);
|
var json = File.ReadAllText(filePath);
|
||||||
var parsedAssorts = JsonSerializer.Deserialize<LiveAssortRoot>(json);
|
var parsedAssorts = JsonSerializer.Deserialize<AssortRoot>(json);
|
||||||
|
|
||||||
if (traderType != Trader.Unknown)
|
if (traderType != Trader.Unknown)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user