Merge pull request #4924 from lyonhan/dev

Spelling mistakes(Cliend => Client)
pull/4578/head
maliming 5 years ago committed by GitHub
commit 06e6ead5f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,7 +17,7 @@ namespace Volo.Abp.IdentityServer.Clients
public virtual async Task<IdentityServer4.Models.Client> FindClientByIdAsync(string clientId)
{
var client = await ClientRepository.FindByCliendIdAsync(clientId);
var client = await ClientRepository.FindByClientIdAsync(clientId);
return ObjectMapper.Map<Client, IdentityServer4.Models.Client>(client);
}
}

@ -9,7 +9,7 @@ namespace Volo.Abp.IdentityServer.Clients
{
public interface IClientRepository : IBasicRepository<Client, Guid>
{
Task<Client> FindByCliendIdAsync(
Task<Client> FindByClientIdAsync(
[NotNull] string clientId,
bool includeDetails = true,
CancellationToken cancellationToken = default
@ -32,4 +32,4 @@ namespace Volo.Abp.IdentityServer.Clients
CancellationToken cancellationToken = default
);
}
}
}

@ -18,7 +18,7 @@ namespace Volo.Abp.IdentityServer.Clients
}
public virtual async Task<Client> FindByCliendIdAsync(
public virtual async Task<Client> FindByClientIdAsync(
string clientId,
bool includeDetails = true,
CancellationToken cancellationToken = default)

@ -21,7 +21,7 @@ namespace Volo.Abp.IdentityServer.MongoDB
{
}
public virtual async Task<Client> FindByCliendIdAsync(
public virtual async Task<Client> FindByClientIdAsync(
string clientId,
bool includeDetails = true,
CancellationToken cancellationToken = default)

@ -35,7 +35,7 @@ namespace Volo.Abp.IdentityServer
using (var uow = _unitOfWorkManager.Begin())
{
var client1 = await _clientRepository.FindByCliendIdAsync("ClientId1");
var client1 = await _clientRepository.FindByClientIdAsync("ClientId1");
client1.AddCorsOrigin("https://new-origin.com");
await _clientRepository.UpdateAsync(client1);

@ -19,9 +19,9 @@ namespace Volo.Abp.IdentityServer
}
[Fact]
public async Task FindByCliendIdAsync()
public async Task FindByClientIdAsync()
{
(await clientRepository.FindByCliendIdAsync("ClientId2")).ShouldNotBeNull();
(await clientRepository.FindByClientIdAsync("ClientId2")).ShouldNotBeNull();
}
[Fact]

Loading…
Cancel
Save