public void GetMetadataAsync_ReturnsNonNullValue() { var task = subject.GetMetadataAsync(); Assert.NotNull(task); Assert.NotNull(task.Result); }
public async Task <IdentityManagerMetadata> GetMetadataAsync() { if (metadata == null) { metadata = await service.GetMetadataAsync(); if (metadata == null) { throw new InvalidOperationException("GetMetadataAsync returned null"); } metadata.Validate(); } return(metadata); }
async Task <IdentityManagerMetadata> GetMetadataAsync() { if (_metadata == null) { _metadata = await userManager.GetMetadataAsync(); if (_metadata == null) { throw new InvalidOperationException("GetMetadataAsync returned null"); } _metadata.Validate(); } return(_metadata); }
public Task <IdentityManagerMetadata> GetMetadataAsync() { return(inner.GetMetadataAsync()); }