Skip to content

Commit

Permalink
Bump csharpier from 0.26.5 to 0.26.7 (#110)
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] <support@github.com>

* CSharpier format

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: gstraccini[bot] <44061807+gstraccini[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and gstraccini[bot] authored Dec 18, 2023
1 parent c37eb6d commit 670fcef
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 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
6 changes: 2 additions & 4 deletions Src/ViaCep/ViaCepClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ CancellationToken cancellationToken
.ConfigureAwait(false);
response.EnsureSuccessStatusCode();
return await response
.Content
.ReadAsAsync<ViaCepResult>(cancellationToken)
.Content.ReadAsAsync<ViaCepResult>(cancellationToken)
.ConfigureAwait(false);
}

Expand All @@ -112,8 +111,7 @@ CancellationToken cancellationToken
.ConfigureAwait(false);
response.EnsureSuccessStatusCode();
return await response
.Content
.ReadAsAsync<List<ViaCepResult>>(cancellationToken)
.Content.ReadAsAsync<List<ViaCepResult>>(cancellationToken)
.ConfigureAwait(false);
}

Expand Down
26 changes: 11 additions & 15 deletions Tests/ViaCep.Tests/AddressTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ public void ValidateSearchByFullAddress()
.Setup(c => c.Search(It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>()))
.Returns(fixtureResults);

var results = clientMock
.Object
.Search(
fixtureResults.First().StateInitials,
fixtureResults.First().City,
fixtureResults.First().Street
);
var results = clientMock.Object.Search(
fixtureResults.First().StateInitials,
fixtureResults.First().City,
fixtureResults.First().Street
);
Assert.NotNull(results);

var list = results.ToList();
Expand Down Expand Up @@ -65,14 +63,12 @@ public async Task ValidateSearchByFullAddressAsync()
)
.ReturnsAsync(fixtureResults);

var results = await clientMock
.Object
.SearchAsync(
fixtureResults.First().StateInitials,
fixtureResults.First().City,
fixtureResults.First().Street,
CancellationToken.None
);
var results = await clientMock.Object.SearchAsync(
fixtureResults.First().StateInitials,
fixtureResults.First().City,
fixtureResults.First().Street,
CancellationToken.None
);
Assert.NotNull(results);

var list = results.ToList();
Expand Down

0 comments on commit 670fcef

Please sign in to comment.