Skip to content
Merged
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
92 changes: 46 additions & 46 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,77 +6,77 @@
<PackageVersion Include="Azure.Monitor.OpenTelemetry.AspNetCore" Version="1.3.0" />
<PackageVersion Include="ExcelMapper" Version="5.2.598" />
<PackageVersion Include="Microsoft.AspNetCore.Http" Version="2.3.0" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="9.0.5" />
<PackageVersion Include="Microsoft.FeatureManagement.AspNetCore" Version="4.1.0" />
<PackageVersion Include="NPOI" Version="2.7.3" />
<PackageVersion Include="Scalar.AspNetCore" Version="2.4.8" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="9.0.9" />
<PackageVersion Include="Microsoft.FeatureManagement.AspNetCore" Version="4.3.0" />
<PackageVersion Include="NPOI" Version="2.7.5" />
<PackageVersion Include="Scalar.AspNetCore" Version="2.8.10" />
<PackageVersion Include="Scryber.Core" Version="6.0.4-beta" />
<PackageVersion Include="Scryber.Core.OpenType" Version="6.1.0-beta" />
<PackageVersion Include="MailKit" Version="4.12.1" />
<PackageVersion Include="AWSSDK.Core" Version="4.0.0.6" />
<PackageVersion Include="AWSSDK.S3" Version="4.0.1.1" />
<PackageVersion Include="Azure.Storage.Blobs" Version="12.24.0" />
<PackageVersion Include="SixLabors.ImageSharp" Version="2.1.10" />
<PackageVersion Include="SkiaSharp" Version="3.119.0" />
<PackageVersion Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="3.119.0" />
<PackageVersion Include="MailKit" Version="4.14.0" />
<PackageVersion Include="AWSSDK.Core" Version="4.0.0.32" />
<PackageVersion Include="AWSSDK.S3" Version="4.0.7.7" />
<PackageVersion Include="Azure.Storage.Blobs" Version="12.25.1" />
<PackageVersion Include="SixLabors.ImageSharp" Version="3.1.11" />
<PackageVersion Include="SkiaSharp" Version="3.119.1" />
<PackageVersion Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="3.119.1" />
<PackageVersion Include="LiteDB" Version="5.0.21" />
<PackageVersion Include="MongoDB.Bson" Version="3.4.0" />
<PackageVersion Include="MongoDB.Driver" Version="3.4.0" />
<PackageVersion Include="MongoDB.Bson" Version="3.5.0" />
<PackageVersion Include="MongoDB.Driver" Version="3.5.0" />
<PackageVersion Include="DotLiquid" Version="2.3.197" />
<PackageVersion Include="FluentValidation.DependencyInjectionExtensions" Version="12.0.0" />
<PackageVersion Include="GoogleAuthenticator" Version="3.2.0" />
<PackageVersion Include="Microsoft.Azure.AppConfiguration.AspNetCore" Version="8.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.5" />
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="9.0.5" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.5" />
<PackageVersion Include="Microsoft.Extensions.DependencyModel" Version="9.0.5" />
<PackageVersion Include="Microsoft.Azure.AppConfiguration.AspNetCore" Version="8.4.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.9" />
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="9.0.9" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.9" />
<PackageVersion Include="Microsoft.Extensions.DependencyModel" Version="9.0.9" />
<PackageVersion Include="AutoMapper" Version="14.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.14.0" />
<PackageVersion Include="MediatR" Version="12.5.0" />
<PackageVersion Include="Scrutor" Version="6.1.0" />
<PackageVersion Include="StackExchange.Redis" Version="2.8.37" />
<PackageVersion Include="StackExchange.Redis" Version="2.9.25" />
<PackageVersion Include="FluentValidation" Version="12.0.0" />
<PackageVersion Include="Microsoft.AspNetCore.JsonPatch" Version="9.0.5" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.5" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.Facebook" Version="9.0.5" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.Google" Version="9.0.5" />
<PackageVersion Include="Braintree" Version="5.33.0" />
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="9.0.5" />
<PackageVersion Include="System.Linq.Dynamic.Core" Version="1.6.5" />
<PackageVersion Include="Microsoft.AspNetCore.JsonPatch" Version="9.0.9" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.9" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.Facebook" Version="9.0.9" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.Google" Version="9.0.9" />
<PackageVersion Include="Braintree" Version="5.35.0" />
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="9.0.9" />
<PackageVersion Include="System.Linq.Dynamic.Core" Version="1.6.8" />
<PackageVersion Include="System.Xml.XPath.XmlDocument" Version="4.7.0" />
<PackageVersion Include="Stripe.net" Version="48.2.0" />
<PackageVersion Include="Stripe.net" Version="49.0.0" />
<PackageVersion Include="elFinder.Net.AspNetCore" Version="1.5.0" />
<PackageVersion Include="elFinder.Net.Core" Version="1.5.0" />
<PackageVersion Include="elFinder.Net.Drivers.FileSystem" Version="1.5.0" />
<PackageVersion Include="Azure.Extensions.AspNetCore.DataProtection.Blobs" Version="1.5.0" />
<PackageVersion Include="Azure.Extensions.AspNetCore.DataProtection.Keys" Version="1.6.0" />
<PackageVersion Include="Azure.Identity" Version="1.14.0" />
<PackageVersion Include="Azure.Extensions.AspNetCore.DataProtection.Blobs" Version="1.5.1" />
<PackageVersion Include="Azure.Extensions.AspNetCore.DataProtection.Keys" Version="1.6.1" />
<PackageVersion Include="Azure.Identity" Version="1.16.0" />
<PackageVersion Include="Flurl.Http" Version="4.0.2" />
<PackageVersion Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="9.0.5" />
<PackageVersion Include="NetEscapades.AspNetCore.SecurityHeaders" Version="1.1.0" />
<PackageVersion Include="Wangkanai.Detection" Version="8.17.0" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="9.0.5" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageVersion Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="9.0.9" />
<PackageVersion Include="NetEscapades.AspNetCore.SecurityHeaders" Version="1.2.0" />
<PackageVersion Include="Wangkanai.Detection" Version="8.20.0" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="9.0.9" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
<PackageVersion Include="Moq" Version="4.20.72" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.9.1" />
<PackageVersion Include="MSTest.TestFramework" Version="3.9.1" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.11.0" />
<PackageVersion Include="MSTest.TestFramework" Version="3.11.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
<PackageVersion Include="NUnit" Version="4.3.2" />
<PackageVersion Include="Aspire.Hosting.AppHost" Version="9.3.0" />
<PackageVersion Include="Aspire.Hosting.MongoDB" Version="9.3.0" />
<PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="9.5.0" />
<PackageVersion Include="Microsoft.Extensions.ServiceDiscovery" Version="9.3.0" />
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.12.0" />
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.12.0" />
<PackageVersion Include="NUnit" Version="4.4.0" />
<PackageVersion Include="Aspire.Hosting.AppHost" Version="9.5.1" />
<PackageVersion Include="Aspire.Hosting.MongoDB" Version="9.5.1" />
<PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="9.9.0" />
<PackageVersion Include="Microsoft.Extensions.ServiceDiscovery" Version="9.5.1" />
<PackageVersion Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.13.0" />
<PackageVersion Include="OpenTelemetry.Extensions.Hosting" Version="1.13.0" />
<PackageVersion Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.12.0" />
<PackageVersion Include="OpenTelemetry.Instrumentation.Http" Version="1.12.0" />
<PackageVersion Include="OpenTelemetry.Instrumentation.Runtime" Version="1.12.0" />
<PackageVersion Include="Aspire.Dashboard.Sdk.$(NETCoreSdkRuntimeIdentifier)" Version="9.0.0" />
<PackageVersion Include="Aspire.Hosting.Orchestration.$(NETCoreSdkRuntimeIdentifier)" Version="9.0.0" />
</ItemGroup>
<ItemGroup>
<PackageVersion Update="Aspire.Dashboard.Sdk.win-x64" Version="9.3.0" />
<PackageVersion Update="Aspire.Hosting.Orchestration.win-x64" Version="9.3.0" />
<PackageVersion Update="Aspire.Dashboard.Sdk.win-x64" Version="9.5.1" />
<PackageVersion Update="Aspire.Hosting.Orchestration.win-x64" Version="9.5.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<Target Name="CopyFile" AfterTargets="AfterBuild">
<ItemGroup>
<CopyFiles Include="$(NuGetPackageRoot)\microsoft.aspnetcore.authentication.facebook\9.0.5\lib\net9.0\*.dll" />
<CopyFiles Include="$(NuGetPackageRoot)\microsoft.aspnetcore.authentication.facebook\9.0.9\lib\net9.0\*.dll" />
</ItemGroup>
<Copy SourceFiles="@(CopyFiles)" DestinationFolder="..\..\Web\Grand.Web\Plugins\Authentication.Facebook\" />
</Target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<Target Name="CopyFile" AfterTargets="AfterBuild">
<ItemGroup>
<CopyFiles Include="$(NuGetPackageRoot)\microsoft.aspnetcore.authentication.google\9.0.5\lib\net9.0\*.dll" />
<CopyFiles Include="$(NuGetPackageRoot)\microsoft.aspnetcore.authentication.google\9.0.9\lib\net9.0\*.dll" />
</ItemGroup>
<Copy SourceFiles="@(CopyFiles)" DestinationFolder="..\..\Web\Grand.Web\Plugins\Authentication.Google\" />
</Target>
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Payments.BrainTree/Payments.BrainTree.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<Target Name="CopyFile" AfterTargets="AfterBuild">
<ItemGroup>
<CopyFiles Include="$(NuGetPackageRoot)\braintree\5.33.0\lib\netstandard2.0\*.*" />
<CopyFiles Include="$(NuGetPackageRoot)\braintree\5.35.0\lib\netstandard2.0\*.*" />
<CopyFiles Include="$(NuGetPackageRoot)\system.xml.xpath.xmldocument\4.7.0\lib\netstandard2.0\*.*" />
</ItemGroup>
<Copy SourceFiles="@(CopyFiles)" DestinationFolder="..\..\Web\Grand.Web\Plugins\Payments.BrainTree\" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<Target Name="CopyFile" AfterTargets="AfterBuild">
<ItemGroup>
<CopyFiles Include="$(NuGetPackageRoot)\stripe.net\48.2.0\lib\net8.0\*.*" />
<CopyFiles Include="$(NuGetPackageRoot)\stripe.net\49.0.0\lib\net8.0\*.*" />
<CopyFiles Include="$(NuGetPackageRoot)\newtonsoft.json\13.0.3\lib\net6.0\*.dll" />
</ItemGroup>
<Copy SourceFiles="@(CopyFiles)" DestinationFolder="..\..\Web\Grand.Web\Plugins\Payments.StripeCheckout\" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public async Task SignOut()
[TestMethod]
public async Task SignIn_NullCustomer_ThrowException()
{
await Assert.ThrowsExceptionAsync<ArgumentNullException>(async () =>
await Assert.ThrowsExactlyAsync<ArgumentNullException>(async () =>
await _cookieAuthService.SignIn(null, false));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public async Task InsertProduct_NullArgument_ThrowException()
{
var request = new UpdateProductReviewTotalsCommand();

await Assert.ThrowsExceptionAsync<ArgumentNullException>(
await Assert.ThrowsExactlyAsync<ArgumentNullException>(
async () => await _updateProductReviewTotalsCommandHandler.Handle(request, default));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void Init()
[TestMethod]
public void InsertCategory_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _categoryService.InsertCategory(null),
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _categoryService.InsertCategory(null),
"category");
}

Expand All @@ -68,7 +68,7 @@ public async Task InsertCategory_ValidArgument_InvokeRepositoryAndCache()
[TestMethod]
public void UpdateCategory_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _categoryService.UpdateCategory(null),
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _categoryService.UpdateCategory(null),
"category");
}

Expand Down Expand Up @@ -161,7 +161,7 @@ public async Task DeleteProductCategory_InvokreRepositoryAndClearCache()
[TestMethod]
public void DeleteProductCategory_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(
Assert.ThrowsExactlyAsync<ArgumentNullException>(
async () => await _productCategoryService.DeleteProductCategory(null, "id"), "productCategory");
}

Expand All @@ -180,7 +180,7 @@ public async Task InsertProductCategory_InvokreRepositoryAndClearCache()
[TestMethod]
public void InsertProductCategory_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(
Assert.ThrowsExactlyAsync<ArgumentNullException>(
async () => await _productCategoryService.InsertProductCategory(null, "id"), "productCategory");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ public async Task GeCollectionById_ValidArgument_GetByCache()
[TestMethod]
public void DeleteCollection_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _collectionService.DeleteCollection(null));
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _collectionService.DeleteCollection(null));
}

[TestMethod]
public void InsertCollection_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _collectionService.InsertCollection(null));
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _collectionService.InsertCollection(null));
}

[TestMethod]
public void UpdateCollection_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _collectionService.UpdateCollection(null));
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _collectionService.UpdateCollection(null));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ public async Task DeleteSearchTerm_ValidArgument()
[TestMethod]
public void InsertSearchTerm_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _service.InsertSearchTerm(null));
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _service.InsertSearchTerm(null));
}

[TestMethod]
public void UpdateSearchTerm_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _service.UpdateSearchTerm(null));
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _service.UpdateSearchTerm(null));
}

[TestMethod]
public void DeleteSearchTerm_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _service.DeleteSearchTerm(null));
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _service.DeleteSearchTerm(null));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void Handle_OrderNull_ThrowException()
var command = new CancelOrderCommand {
Order = null
};
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _handler.Handle(command, default));
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _handler.Handle(command, default));
}

[TestMethod]
Expand All @@ -63,7 +63,7 @@ public void Handle_AlreadyCancelled_ThrowException()
var command = new CancelOrderCommand {
Order = new Order { OrderStatusId = (int)OrderStatusSystem.Cancelled }
};
Assert.ThrowsExceptionAsync<Exception>(async () => await _handler.Handle(command, default));
Assert.ThrowsExactlyAsync<Exception>(async () => await _handler.Handle(command, default));
}

[TestMethod]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ public void IsPaymentMethodActive_ReturnExpectedResult()
public void IsPaymentMethodActive_NullSettings_ThrowException()
{
PaymentSettings settings = null;
Assert.ThrowsException<ArgumentNullException>(() => _providerMock.Object.IsPaymentMethodActive(settings));
Assert.ThrowsExactly<ArgumentNullException>(() => _providerMock.Object.IsPaymentMethodActive(settings));
}

[TestMethod]
public void IsPaymentMethodActive_NullProvider_ThrowException()
{
IPaymentProvider provider = null;
var settings = new PaymentSettings();
Assert.ThrowsException<ArgumentNullException>(() => provider.IsPaymentMethodActive(settings));
Assert.ThrowsExactly<ArgumentNullException>(() => provider.IsPaymentMethodActive(settings));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ public void IsShippingRateMethodActive_NullProvider_ThrowException()
{
IShippingRateCalculationProvider provider = null;
var settings = new ShippingProviderSettings();
Assert.ThrowsException<ArgumentNullException>(() => provider.IsShippingRateMethodActive(settings));
Assert.ThrowsExactly<ArgumentNullException>(() => provider.IsShippingRateMethodActive(settings));
}

[TestMethod]
public void IsShippingRateMethodActive_NullSettings_ThrowException()
{
var providerMock = new Mock<IShippingRateCalculationProvider>();
var provider = providerMock.Object;
Assert.ThrowsException<ArgumentNullException>(() => provider.IsShippingRateMethodActive(null));
Assert.ThrowsExactly<ArgumentNullException>(() => provider.IsShippingRateMethodActive(null));
}

[TestMethod]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task InsertCheckoutAttribute_InvokeExpectedMethods()
[TestMethod]
public void InsertCheckoutAttribute_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _service.InsertCheckoutAttribute(null));
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _service.InsertCheckoutAttribute(null));
}

[TestMethod]
Expand All @@ -59,7 +59,7 @@ public async Task UpdateCheckoutAttribute_InvokeExpectedMethods()
[TestMethod]
public void UpdateCheckoutAttribute_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _service.UpdateCheckoutAttribute(null));
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _service.UpdateCheckoutAttribute(null));
}

[TestMethod]
Expand All @@ -74,6 +74,6 @@ public async Task DeleteCheckoutAttribute_InvokeExpectedMethods()
[TestMethod]
public void DeleteCheckoutAttribute_NullArgument_ThrowException()
{
Assert.ThrowsExceptionAsync<ArgumentNullException>(async () => await _service.DeleteCheckoutAttribute(null));
Assert.ThrowsExactlyAsync<ArgumentNullException>(async () => await _service.DeleteCheckoutAttribute(null));
}
}
Loading