Skip to content

Commit

Permalink
Renamed in Coalesce,Sum,Muv the fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocinaark committed Jan 14, 2025
1 parent ab431db commit 86831f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Artesian/Artesian.SDK.Tests/Samples/DerivedTimeSerieTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ public async Task CreateDerivedCoalesceTimeSeries()
}

// Update DerivedCfg
if (marketData.DerivedCfg.DerivedCfgCoalesce != null)
if (marketData.DerivedCfg.Coalesce != null)
{
curveIds.Reverse();
var derivedCfgUpdate = new DerivedCfgCoalesce()
{
OrderedReferencedMarketDataIds = curveIds.ToArray(),
};

if (!marketData.DerivedCfg.DerivedCfgCoalesce.OrderedReferencedMarketDataIds.SequenceEqual(derivedCfgUpdate.OrderedReferencedMarketDataIds))
if (!marketData.DerivedCfg.Coalesce.OrderedReferencedMarketDataIds.SequenceEqual(derivedCfgUpdate.OrderedReferencedMarketDataIds))
{
marketData.UpdateDerivedConfiguration(derivedCfgUpdate, false).ConfigureAwait(true).GetAwaiter().GetResult();

Expand Down
12 changes: 6 additions & 6 deletions Artesian/Artesian.SDK/Dto/DerivedCfg/DerivedCfg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ public record DerivedCfg
internal DerivedCfg(DerivedCfgBase derivedCfg)
{
if (derivedCfg is DerivedCfgCoalesce)
DerivedCfgCoalesce = new DerivedCfgCoalesceReadOnly(derivedCfg as DerivedCfgCoalesce);
Coalesce = new DerivedCfgCoalesceReadOnly(derivedCfg as DerivedCfgCoalesce);
else if (derivedCfg is DerivedCfgSum)
DerivedCfgSum = new DerivedCfgSumReadOnly(derivedCfg as DerivedCfgSum);
Sum = new DerivedCfgSumReadOnly(derivedCfg as DerivedCfgSum);
else if (derivedCfg is DerivedCfgMuv)
DerivedCfgMuv = new DerivedCfgMuvReadOnly(derivedCfg as DerivedCfgMuv);
Muv = new DerivedCfgMuvReadOnly(derivedCfg as DerivedCfgMuv);
}

/// <summary>
/// DerivedCfgCoalesce
/// </summary>
public DerivedCfgCoalesceReadOnly? DerivedCfgCoalesce { get; protected set; } = null;
public DerivedCfgCoalesceReadOnly? Coalesce { get; protected set; } = null;

/// <summary>
/// DerivedCfgSum
/// </summary>
public DerivedCfgSumReadOnly? DerivedCfgSum { get; protected set; } = null;
public DerivedCfgSumReadOnly? Sum { get; protected set; } = null;

/// <summary>
/// DerivedCfgMuv
/// </summary>
public DerivedCfgMuvReadOnly? DerivedCfgMuv { get; protected set; } = null;
public DerivedCfgMuvReadOnly? Muv { get; protected set; } = null;

}
}

0 comments on commit 86831f0

Please sign in to comment.