Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 28 additions & 28 deletions src/ByteSync.Client/ByteSync.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,52 +51,52 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="8.4.0"/>
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="10.0.0"/>
<PackageReference Include="Avalonia" Version="11.3.11"/>
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.3.11"/>
<PackageReference Include="Avalonia.Desktop" Version="11.3.11"/>
<PackageReference Include="Avalonia.Diagnostics" Version="11.3.11"/>
<PackageReference Include="Autofac" Version="9.1.0"/>
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="11.0.0"/>
<PackageReference Include="Avalonia" Version="11.3.14"/>
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.3.13"/>
<PackageReference Include="Avalonia.Desktop" Version="11.3.14"/>
<PackageReference Include="Avalonia.Diagnostics" Version="11.3.14"/>
<PackageReference Include="Avalonia.ReactiveUI" Version="11.3.8"/>
<PackageReference Include="Avalonia.Svg.Skia" Version="11.3.0"/>
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.3.11"/>
<PackageReference Include="Avalonia.Markup.Xaml.Loader" Version="11.3.11"/>
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.3.14"/>
<PackageReference Include="Avalonia.Markup.Xaml.Loader" Version="11.3.14"/>
<PackageReference Include="Azure.Storage.Blobs" Version="12.27.0"/>
<PackageReference Include="DynamicData" Version="9.4.1"/>
<PackageReference Include="FastRsyncNet" Version="2.4.4"/>
<PackageReference Include="LiveChartsCore.SkiaSharpView.Avalonia" Version="2.0.0-beta.700"/>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="10.0.5"/>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.5"/>
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.5"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.5"/>
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.5"/>
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="8.0.22"/>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.5"/>
<PackageReference Include="DynamicData" Version="9.4.31"/>
<PackageReference Include="FastRsyncNet" Version="2.4.5"/>
<PackageReference Include="LiveChartsCore.SkiaSharpView.Avalonia" Version="2.0.2"/>
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="10.0.7"/>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.7"/>
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.7"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.7"/>
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.7"/>
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="10.0.7"/>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.7"/>
<PackageReference Include="Mono.Posix.NETStandard" Version="1.0.0"/>
<PackageReference Include="Polly" Version="8.6.5"/>
<PackageReference Include="Polly" Version="8.6.6"/>
<PackageReference Include="ReactiveMarbles.ObservableEvents.SourceGenerator" Version="1.3.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="ReactiveUI.Fody" Version="19.5.41"/>
<PackageReference Include="Serilog" Version="4.3.0"/>
<PackageReference Include="Serilog" Version="4.3.1"/>
<PackageReference Include="Serilog.Extensions.Autofac.DependencyInjection" Version="5.0.0"/>
<PackageReference Include="Serilog.Sinks.Async" Version="2.1.0"/>
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1"/>
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0"/>
<PackageReference Include="SharpZipLib" Version="1.4.2"/>
<PackageReference Include="SkiaSharp" Version="3.119.1"/>
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="3.119.1"/>
<PackageReference Include="SkiaSharp.NativeAssets.macOS" Version="3.119.1"/>
<PackageReference Include="SkiaSharp.NativeAssets.Win32" Version="3.119.1"/>
<PackageReference Include="Splat" Version="15.4.1"/>
<PackageReference Include="Splat.Autofac" Version="15.4.1"/>
<PackageReference Include="Splat.Serilog" Version="15.4.1"/>
<PackageReference Include="SkiaSharp" Version="3.119.2"/>
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="3.119.2"/>
<PackageReference Include="SkiaSharp.NativeAssets.macOS" Version="3.119.2"/>
<PackageReference Include="SkiaSharp.NativeAssets.Win32" Version="3.119.2"/>
<PackageReference Include="Splat" Version="15.5.3"/>
<PackageReference Include="Splat.Autofac" Version="15.5.3"/>
<PackageReference Include="Splat.Serilog" Version="15.5.3"/>
<PackageReference Include="System.Reactive" Version="6.1.0"/>
<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0"/>
<PackageReference Include="System.Security.Cryptography.OpenSsl" Version="5.0.0"/>
<PackageReference Update="Packaging.Targets" Version="0.1.232"/>
<PackageReference Include="Xaml.Behaviors.Avalonia" Version="11.3.9.3"/>
<PackageReference Include="Xaml.Behaviors.Avalonia" Version="11.3.9.5"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ByteSync.Common\ByteSync.Common.csproj"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
private const double PROGRESSIVE_MODE_POWER_BASE = 0.2d;
private readonly IApplicationSettingsRepository _applicationSettingsRepository;

public UsageStatisticsViewModel()

Check warning on line 36 in src/ByteSync.Client/ViewModels/AccountDetails/UsageStatisticsViewModel.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Non-nullable field '_statisticsService' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

See more on https://sonarcloud.io/project/issues?id=POW-Software_ByteSync&issues=AZ34gPsxFU2spx-gf1Zb&open=AZ34gPsxFU2spx-gf1Zb&pullRequest=294
{

}
Expand Down Expand Up @@ -305,7 +305,7 @@
var mainColumnSerie = new ColumnSeries<LogarithmicPoint>
{
Values = BuildValues(UsageStatisticsData.CurrentPeriodData),
TooltipLabelFormatter = BuildToolTipLabel,
YToolTipLabelFormatter = BuildToolTipLabel,
Fill = new SolidColorPaint(new SKColor(chartsMainBarColor.R, chartsMainBarColor.G, chartsMainBarColor.B)),
Mapping = BuildMapping
};
Expand All @@ -324,14 +324,14 @@
return mainColumnSerie;
}

private ISeries BuildPreviousPeriodSerie()

Check warning on line 327 in src/ByteSync.Client/ViewModels/AccountDetails/UsageStatisticsViewModel.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Change return type of method 'BuildPreviousPeriodSerie' from 'LiveChartsCore.ISeries' to 'LiveChartsCore.SkiaSharpView.LineSeries<ByteSync.ViewModels.AccountDetails.UsageStatisticsViewModel.LogarithmicPoint>' for improved performance

See more on https://sonarcloud.io/project/issues?id=POW-Software_ByteSync&issues=AZ34gPsxFU2spx-gf1Ze&open=AZ34gPsxFU2spx-gf1Ze&pullRequest=294
{
Color chartsMainLineColor = (_themeService.GetBrush("ChartsMainLineColor") as SolidColorBrush)!.Color;

var lineSeries = new LineSeries<LogarithmicPoint>
{
Values = BuildValues(UsageStatisticsData.PreviousPeriodData),
TooltipLabelFormatter = BuildToolTipLabel,
YToolTipLabelFormatter = BuildToolTipLabel,
Stroke = new SolidColorPaint(new SKColor(chartsMainLineColor.R, chartsMainLineColor.G, chartsMainLineColor.B), 3),
GeometrySize = 0,
GeometryStroke = null,
Expand All @@ -358,20 +358,19 @@
return values;
}

private string BuildToolTipLabel(ChartPoint<LogarithmicPoint, BezierPoint<CircleGeometry>, LabelGeometry> chartPoint)
private string BuildToolTipLabel(ChartPoint<LogarithmicPoint, CircleGeometry, LabelGeometry> chartPoint)
{
return DoBuildToolTipLabel(chartPoint.Context, chartPoint.Model!, PreviousYear);
return DoBuildToolTipLabel(chartPoint.Index, chartPoint.Model!, PreviousYear);
}

private string BuildToolTipLabel(ChartPoint<LogarithmicPoint, RoundedRectangleGeometry, LabelGeometry> chartPoint)
{
return DoBuildToolTipLabel(chartPoint.Context, chartPoint.Model!, Year);
return DoBuildToolTipLabel(chartPoint.Index, chartPoint.Model!, Year);
}

private string DoBuildToolTipLabel(ChartPointContext context, LogarithmicPoint model, int year)
private string DoBuildToolTipLabel(int pointIndex, LogarithmicPoint model, int year)
{
// Exemple : "Janvier 2023 - 520 987 o (507,29 Ko)
var monthName = _localizationService.GetMonthName(context.Entity.EntityIndex);
var monthName = _localizationService.GetMonthName(pointIndex);
var result = $"{string.Format(Resources.General_MonthYearColon, monthName, year)} ";

if (model.Volume > 1024)
Expand All @@ -390,24 +389,13 @@
return result;
}

private void BuildMapping(LogarithmicPoint logPoint, ChartPoint chartPoint)
private Coordinate BuildMapping(LogarithmicPoint logPoint, int index)
{
// Le mapping permet d'adapter la valeur quand le mode progressif est utilisé
// https://lvcharts.com/docs/Avalonia/2.0.0-beta.700/samples.axes.logarithmic
var volume = UseProgressiveScale
? Math.Pow(logPoint.Volume, PROGRESSIVE_MODE_POWER_BASE)
: logPoint.Volume;

// for the x coordinate, we use the X property of the LogaritmicPoint instance
chartPoint.SecondaryValue = logPoint.X;

// but for the Y coordinate, we will map to the logarithm of the value
if (UseProgressiveScale)
{
chartPoint.PrimaryValue = Math.Pow(logPoint.Volume, PROGRESSIVE_MODE_POWER_BASE);
}
else
{
chartPoint.PrimaryValue = logPoint.Volume;
}
return new Coordinate(logPoint.X, volume);
}

private class LogarithmicPoint
Expand Down Expand Up @@ -453,4 +441,4 @@

return maxValue;
}
}
}
6 changes: 3 additions & 3 deletions src/ByteSync.Common/ByteSync.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.5" />
<PackageReference Include="Serilog" Version="4.3.0" />
<PackageReference Include="System.IO.Abstractions" Version="22.1.0"/>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.7" />
<PackageReference Include="Serilog" Version="4.3.1" />
<PackageReference Include="System.IO.Abstractions" Version="22.1.1"/>
</ItemGroup>

</Project>
23 changes: 12 additions & 11 deletions src/ByteSync.Functions/ByteSync.Functions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,27 @@
<UserSecretsId>fad123b6-a5bb-4773-8a56-3af68f41292c</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="8.4.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="10.0.0" />
<PackageReference Include="Azure.Identity" Version="1.17.1"/>
<PackageReference Include="MediatR" Version="12.5.0" />
<PackageReference Include="Autofac" Version="9.1.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="11.0.0" />
<PackageReference Include="Azure.Identity" Version="1.21.0"/>
<PackageReference Include="MediatR" Version="14.1.0" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.23.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.51.0"/>
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.52.0"/>
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.50.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.3.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.SignalRService" Version="1.14.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.SignalRService" Version="2.0.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Timer" Version="4.3.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.7" />
<PackageReference Include="Microsoft.Azure.AppConfiguration.AspNetCore" Version="8.5.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.5"/>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.7"/>
<PackageReference Include="Microsoft.Azure.SignalR" Version="1.33.0"/>
<PackageReference Include="Microsoft.Azure.SignalR.Management" Version="1.33.0"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.5" />
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.5" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.5" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.7" />
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.7" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.7" />
<PackageReference Include="OpenTelemetry.Api" Version="1.15.3" />
<PackageReference Include="RedLock.net" Version="2.3.2" />
<PackageReference Include="StackExchange.Redis" Version="2.10.1"/>
<PackageReference Include="StackExchange.Redis" Version="2.12.14"/>
</ItemGroup>
<ItemGroup>
<None Update="host.json">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public async Task Invoke(FunctionContext context, FunctionExecutionDelegate next

var scopeProperties = new Dictionary<string, object>
{
["OperationId"] = operation.Telemetry.Context.Operation.Id,
["OperationId"] = operation.Telemetry.Id,
["FunctionName"] = context.FunctionDefinition.Name
};

Expand All @@ -42,4 +42,4 @@ public async Task Invoke(FunctionContext context, FunctionExecutionDelegate next
await next(context);
}
}
}
}
20 changes: 10 additions & 10 deletions src/ByteSync.ServerCommon/ByteSync.ServerCommon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.S3" Version="4.0.18.1"/>
<PackageReference Include="Azure.Identity" Version="1.17.1"/>
<PackageReference Include="AWSSDK.S3" Version="4.0.22.2"/>
<PackageReference Include="Azure.Identity" Version="1.21.0"/>
<PackageReference Include="Azure.Storage.Blobs" Version="12.27.0"/>
<PackageReference Include="MediatR" Version="12.5.0"/>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.5"/>
<PackageReference Include="MediatR" Version="14.1.0"/>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.7"/>
<PackageReference Include="Microsoft.Azure.SignalR" Version="1.33.0"/>
<PackageReference Include="Microsoft.Azure.SignalR.Management" Version="1.33.0"/>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.5"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.5"/>
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.5"/>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.5"/>
<PackageReference Include="Polly" Version="8.6.5"/>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.7"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.7"/>
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.7"/>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.7"/>
<PackageReference Include="Polly" Version="8.6.6"/>
<PackageReference Include="RedLock.net" Version="2.3.2"/>
<PackageReference Include="StackExchange.Redis" Version="2.10.1"/>
<PackageReference Include="StackExchange.Redis" Version="2.12.14"/>
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using ByteSync.Interfaces.Services.Sessions;
using ByteSync.Models.Inventories;
using ByteSync.Services.Filtering;
using FluentAssertions;
using AwesomeAssertions;
using Moq;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using ByteSync.Common.Business.Actions;
using ByteSync.Interfaces.Repositories;
using ByteSync.Models.Comparisons.Result;
using FluentAssertions;
using AwesomeAssertions;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;

Expand Down Expand Up @@ -332,7 +332,7 @@
result.Should().BeTrue();
}

private AtomicAction CreateAtomicAction(ComparisonItem comparisonItem, ActionOperatorTypes operatorType, bool isTargeted)

Check warning on line 335 in tests/ByteSync.Client.IntegrationTests/Business/Filtering/TestFiltering_Actions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Member 'CreateAtomicAction' does not access instance data and can be marked as static

See more on https://sonarcloud.io/project/issues?id=POW-Software_ByteSync&issues=AZ4BvGPxPIYVJ_BtTMix&open=AZ4BvGPxPIYVJ_BtTMix&pullRequest=294
{
var action = new AtomicAction($"AAID_{Guid.NewGuid()}", comparisonItem);
action.Operator = operatorType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using ByteSync.Models.Comparisons.Result;
using ByteSync.Models.FileSystems;
using ByteSync.Models.Inventories;
using FluentAssertions;
using AwesomeAssertions;
using Moq;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Globalization;
using FluentAssertions;
using AwesomeAssertions;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using ByteSync.Common.Business.Inventories;
using ByteSync.Interfaces.Services.Sessions;
using ByteSync.Models.Inventories;
using FluentAssertions;
using AwesomeAssertions;
using Moq;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using ByteSync.Interfaces.Services.Sessions;
using ByteSync.Models.Comparisons.Result;
using ByteSync.Models.Inventories;
using FluentAssertions;
using AwesomeAssertions;
using Moq;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;
Expand Down Expand Up @@ -281,7 +281,7 @@
mockDataPartIndexer.Setup(m => m.GetDataPart(dataPartA2Name)).Returns(dataPartA2);
}

private AtomicAction CreateAtomicAction(ComparisonItem comparisonItem, ActionOperatorTypes operatorType, bool isTargeted)

Check warning on line 284 in tests/ByteSync.Client.IntegrationTests/Business/Filtering/TestFiltering_DocumentationExamples.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Member 'CreateAtomicAction' does not access instance data and can be marked as static

See more on https://sonarcloud.io/project/issues?id=POW-Software_ByteSync&issues=AZ4BvGPiPIYVJ_BtTMiw&open=AZ4BvGPiPIYVJ_BtTMiw&pullRequest=294
{
var action = new AtomicAction($"AAID_{Guid.NewGuid()}", comparisonItem);
action.Operator = operatorType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentAssertions;
using AwesomeAssertions;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentAssertions;
using AwesomeAssertions;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ByteSync.Common.Business.Inventories;
using ByteSync.Models.Comparisons.Result;
using ByteSync.Models.FileSystems;
using FluentAssertions;
using AwesomeAssertions;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentAssertions;
using AwesomeAssertions;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentAssertions;
using AwesomeAssertions;
using ByteSync.Business.Filtering.Expressions;
using ByteSync.Business.Filtering.Parsing;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentAssertions;
using AwesomeAssertions;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentAssertions;
using AwesomeAssertions;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using FluentAssertions;
using AwesomeAssertions;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using ByteSync.Common.Business.Inventories;
using ByteSync.Interfaces.Services.Sessions;
using ByteSync.Models.Comparisons.Result;
using FluentAssertions;
using AwesomeAssertions;
using Moq;

namespace ByteSync.Client.IntegrationTests.Business.Filtering;
Expand Down Expand Up @@ -54,7 +54,7 @@

var mockDataPartIndexer = Container.Resolve<Mock<IDataPartIndexer>>();
mockDataPartIndexer.Setup(m => m.GetDataPart(It.IsAny<string>()))
.Returns((DataPart)null);

Check warning on line 57 in tests/ByteSync.Client.IntegrationTests/Business/Filtering/TestFiltering_TextSearch.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Converting null literal or possible null value to non-nullable type.

See more on https://sonarcloud.io/project/issues?id=POW-Software_ByteSync&issues=AZ4BvGQFPIYVJ_BtTMiz&open=AZ4BvGQFPIYVJ_BtTMiz&pullRequest=294

// Act
var result = EvaluateFilterExpression(filterText, comparisonItem);
Expand Down Expand Up @@ -103,7 +103,7 @@

var mockDataPartIndexer = Container.Resolve<Mock<IDataPartIndexer>>();
mockDataPartIndexer.Setup(m => m.GetDataPart(It.IsAny<string>()))
.Returns((DataPart)null);

Check warning on line 106 in tests/ByteSync.Client.IntegrationTests/Business/Filtering/TestFiltering_TextSearch.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Converting null literal or possible null value to non-nullable type.

See more on https://sonarcloud.io/project/issues?id=POW-Software_ByteSync&issues=AZ4BvGQFPIYVJ_BtTMi0&open=AZ4BvGQFPIYVJ_BtTMi0&pullRequest=294

// Act
var result1 = EvaluateFilterExpression(filterText, comparisonItem1);
Expand Down
Loading
Loading