From 86831f03d1a278dc0da098143688c29701923328 Mon Sep 17 00:00:00 2001 From: Jacopo Cina Date: Tue, 14 Jan 2025 16:24:48 +0100 Subject: [PATCH] Renamed in Coalesce,Sum,Muv the fields --- .../Samples/DerivedTimeSerieTest.cs | 4 ++-- Artesian/Artesian.SDK/Dto/DerivedCfg/DerivedCfg.cs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Artesian/Artesian.SDK.Tests/Samples/DerivedTimeSerieTest.cs b/Artesian/Artesian.SDK.Tests/Samples/DerivedTimeSerieTest.cs index 7c46102..16b37cc 100644 --- a/Artesian/Artesian.SDK.Tests/Samples/DerivedTimeSerieTest.cs +++ b/Artesian/Artesian.SDK.Tests/Samples/DerivedTimeSerieTest.cs @@ -134,7 +134,7 @@ public async Task CreateDerivedCoalesceTimeSeries() } // Update DerivedCfg - if (marketData.DerivedCfg.DerivedCfgCoalesce != null) + if (marketData.DerivedCfg.Coalesce != null) { curveIds.Reverse(); var derivedCfgUpdate = new DerivedCfgCoalesce() @@ -142,7 +142,7 @@ public async Task CreateDerivedCoalesceTimeSeries() 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(); diff --git a/Artesian/Artesian.SDK/Dto/DerivedCfg/DerivedCfg.cs b/Artesian/Artesian.SDK/Dto/DerivedCfg/DerivedCfg.cs index 725f808..e3afc99 100644 --- a/Artesian/Artesian.SDK/Dto/DerivedCfg/DerivedCfg.cs +++ b/Artesian/Artesian.SDK/Dto/DerivedCfg/DerivedCfg.cs @@ -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); } /// /// DerivedCfgCoalesce /// - public DerivedCfgCoalesceReadOnly? DerivedCfgCoalesce { get; protected set; } = null; + public DerivedCfgCoalesceReadOnly? Coalesce { get; protected set; } = null; /// /// DerivedCfgSum /// - public DerivedCfgSumReadOnly? DerivedCfgSum { get; protected set; } = null; + public DerivedCfgSumReadOnly? Sum { get; protected set; } = null; /// /// DerivedCfgMuv /// - public DerivedCfgMuvReadOnly? DerivedCfgMuv { get; protected set; } = null; + public DerivedCfgMuvReadOnly? Muv { get; protected set; } = null; } }