Skip to content

Commit

Permalink
Bump csharpier from 0.26.5 to 0.26.7 (#200)
Browse files Browse the repository at this point in the history
* Bump csharpier from 0.26.5 to 0.26.7

Bumps [csharpier](https://github.com/belav/csharpier) from 0.26.5 to 0.26.7.
- [Release notes](https://github.com/belav/csharpier/releases)
- [Changelog](https://github.com/belav/csharpier/blob/main/CHANGELOG.md)
- [Commits](belav/csharpier@0.26.5...0.26.7)

---
updated-dependencies:
- dependency-name: csharpier
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* CSharpier format

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Guilherme Branco Stracini <[email protected]>
Co-authored-by: gstraccini[bot] <44061807+gstraccini[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 18, 2023
1 parent acb5982 commit e895fe8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.26.5",
"version": "0.26.7",
"commands": [
"dotnet-csharpier"
]
Expand Down
15 changes: 8 additions & 7 deletions Src/VTEX/VTEXContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,10 @@ private Order GetOrderInternal(string orderId)
}
else if (
transaction.TransactionId != null
&& !transaction
.TransactionId
.Equals(@"NO-PAYMENT", StringComparison.InvariantCultureIgnoreCase)
&& !transaction.TransactionId.Equals(
@"NO-PAYMENT",
StringComparison.InvariantCultureIgnoreCase
)
)
{
LogConsumer.Info(@"Bank bill {0}", order.Sequence);
Expand Down Expand Up @@ -297,10 +298,10 @@ private Order GetOrderInternal(string orderId)
}

if (
order
.ClientProfileData
.Email
.IndexOf(@"ct.vtex", StringComparison.InvariantCultureIgnoreCase) != -1
order.ClientProfileData.Email.IndexOf(
@"ct.vtex",
StringComparison.InvariantCultureIgnoreCase
) != -1
)
{
order.ClientProfileData.Email = @"[email protected]";
Expand Down
21 changes: 8 additions & 13 deletions Src/VTEX/VTEXWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ private static string InternalUserAgent
}

var assembly = System
.Reflection
.Assembly
.GetAssembly(typeof(VTEXWrapper))
.Reflection.Assembly.GetAssembly(typeof(VTEXWrapper))
.GetName();
_internalUserAgent = $@"{assembly.Name}/{assembly.Version}";
return _internalUserAgent;
Expand Down Expand Up @@ -288,16 +286,13 @@ private void ConfigureClient(HttpClient client, bool requiresAuthentication)
{
client.DefaultRequestHeaders.ExpectContinue = false;
client.DefaultRequestHeaders.Accept.Clear();
client
.DefaultRequestHeaders
.Accept
.Add(new MediaTypeWithQualityHeaderValue(@"application/json"));
client
.DefaultRequestHeaders
.TryAddWithoutValidation(
@"User-Agent",
$@"guiBranco-VTEX-SDK-dotnet {InternalUserAgent} +https://github.com/guibranco/VTEX-SDK-dotnet"
);
client.DefaultRequestHeaders.Accept.Add(
new MediaTypeWithQualityHeaderValue(@"application/json")
);
client.DefaultRequestHeaders.TryAddWithoutValidation(
@"User-Agent",
$@"guiBranco-VTEX-SDK-dotnet {InternalUserAgent} +https://github.com/guibranco/VTEX-SDK-dotnet"
);
if (!requiresAuthentication)
{
return;
Expand Down
3 changes: 1 addition & 2 deletions Tests/VTEX.Tests/Health/VtexHealthClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ public async Task ValidateHealthClient()
.ReturnsAsync(fixtures);

var result = await clientMock
.Object
.GetPlatformStatuesAsync(CancellationToken.None)
.Object.GetPlatformStatuesAsync(CancellationToken.None)
.ConfigureAwait(false);

Assert.NotNull(result);
Expand Down

0 comments on commit e895fe8

Please sign in to comment.