Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ntruchsess authored and Phil91 committed Aug 11, 2023
1 parent bbb3e8b commit 9d0ded9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public IAsyncEnumerable<CompanyRoleId> GetOwnCompanyRolesAsync(Guid companyId) =
_context.CompanyAssignedRoles
.Where(x => x.CompanyId == companyId)
.Select(x => x.CompanyRoleId)
.ToAsyncEnumerable();
.AsAsyncEnumerable();

/// <inheritdoc />
public IAsyncEnumerable<OperatorBpnData> GetOperatorBpns() =>
Expand All @@ -306,5 +306,5 @@ public IAsyncEnumerable<OperatorBpnData> GetOperatorBpns() =>
.Select(x => new OperatorBpnData(
x.Name,
x.BusinessPartnerNumber!))
.ToAsyncEnumerable();
.AsAsyncEnumerable();
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async Task GetPublicUrls_ForParticipant_ReturnsExpected()
A.CallTo(() => _identityService.IdentityData).Returns(new IdentityData("4C1A6851-D4E7-4E10-A011-3732CD045E8A", Guid.NewGuid(), IdentityTypeId.COMPANY_USER, _participantCompany));

// Act
var result = await this._sut.GetPublicUrls().ConfigureAwait(false);
var result = await _sut.GetPublicUrls().ConfigureAwait(false);

// Assert
result.Should().HaveCount(1).And.Satisfy(x => x.HttpMethods == "GET" && x.Url == "all");
Expand All @@ -73,7 +73,7 @@ public async Task GetPublicUrls_ForAppProvider_ReturnsExpected()
A.CallTo(() => _identityService.IdentityData).Returns(new IdentityData("4C1A6851-D4E7-4E10-A011-3732CD045E8A", Guid.NewGuid(), IdentityTypeId.COMPANY_USER, _appProviderCompany));

// Act
var result = await this._sut.GetPublicUrls().ConfigureAwait(false);
var result = await _sut.GetPublicUrls().ConfigureAwait(false);

// Assert
result.Should().HaveCount(3).And.Satisfy(
Expand Down Expand Up @@ -145,6 +145,14 @@ public void OnlyAppProvider()
[Route("participant")]
#pragma warning disable CA1822
public void OnlyAppProviderPost()
#pragma warning restore CA1822
{
}

[HttpGet]
[Route("none")]
#pragma warning disable CA1822
public void NoRole()
#pragma warning restore CA1822
{
}
Expand Down

0 comments on commit 9d0ded9

Please sign in to comment.