Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public GetUsersTest(GetUsersFixture fixture)
}

[Fact]
public async void VariousIdentifiers()
public async Task VariousIdentifiers()
{
var getUsersResult = await FirebaseAuth.DefaultInstance.GetUsersAsync(
new List<UserIdentifier>()
Expand All @@ -56,7 +56,7 @@ public async void VariousIdentifiers()
}

[Fact]
public async void IgnoresNonExistingUsers()
public async Task IgnoresNonExistingUsers()
{
var doesntExistId = new UidIdentifier("uid_that_doesnt_exist");
var getUsersResult = await FirebaseAuth.DefaultInstance.GetUsersAsync(
Expand All @@ -79,7 +79,7 @@ public async void IgnoresNonExistingUsers()
}

[Fact]
public async void OnlyNonExistingUsers()
public async Task OnlyNonExistingUsers()
{
var doesntExistId = new UidIdentifier("uid_that_doesnt_exist");
var getUsersResult = await FirebaseAuth.DefaultInstance.GetUsersAsync(
Expand All @@ -93,7 +93,7 @@ public async void OnlyNonExistingUsers()
}

[Fact]
public async void DedupsDuplicateUsers()
public async Task DedupsDuplicateUsers()
{
var getUsersResult = await FirebaseAuth.DefaultInstance.GetUsersAsync(
new List<UserIdentifier>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
3 changes: 2 additions & 1 deletion FirebaseAdmin/FirebaseAdmin.Tests/Auth/FirebaseAuthTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

using System;
using System.Threading.Tasks;
using FirebaseAdmin.Auth.Jwt;
using Google.Apis.Auth.OAuth2;
using Xunit;
Expand Down Expand Up @@ -171,7 +172,7 @@ public void ServiceAccountId()
}

[Fact]
public async void InvalidCredential()
public async Task InvalidCredential()
{
var options = new AppOptions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class EmailActionRequestTest
};

[Fact]
public async void NoEmail()
public async Task NoEmail()
{
var handler = new MockMessageHandler() { Response = GenerateEmailLinkResponse };
var auth = this.CreateFirebaseAuth(handler);
Expand All @@ -115,7 +115,7 @@ await Assert.ThrowsAsync<ArgumentException>(

[Theory]
[MemberData(nameof(InvalidActionCodeSettingsArgs))]
public async void InvalidActionCodeSettings(ActionCodeSettings settings)
public async Task InvalidActionCodeSettings(ActionCodeSettings settings)
{
var handler = new MockMessageHandler() { Response = GenerateEmailLinkResponse };
var auth = this.CreateFirebaseAuth(handler);
Expand Down Expand Up @@ -264,7 +264,7 @@ public async Task PasswordResetLinkUnexpectedResponse()
}

[Fact]
public async void SignInWithEmailLinkNoSettings()
public async Task SignInWithEmailLinkNoSettings()
{
var handler = new MockMessageHandler() { Response = GenerateEmailLinkResponse };
var auth = this.CreateFirebaseAuth(handler);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ public async Task NullClaims(TestConfig config)

[Theory]
[MemberData(nameof(TestConfigs))]
public async void ReservedClaims(TestConfig config)
public async Task ReservedClaims(TestConfig config)
{
var handler = new MockMessageHandler();
var auth = config.CreateAuth(handler);
Expand All @@ -1321,7 +1321,7 @@ await Assert.ThrowsAsync<ArgumentException>(

[Theory]
[MemberData(nameof(TestConfigs))]
public async void UpdateUserNoUid(TestConfig config)
public async Task UpdateUserNoUid(TestConfig config)
{
var handler = new MockMessageHandler();
var auth = config.CreateAuth(handler);
Expand All @@ -1335,7 +1335,7 @@ public async void UpdateUserNoUid(TestConfig config)

[Theory]
[MemberData(nameof(TestConfigs))]
public async void UpdateUserInvalidUid(TestConfig config)
public async Task UpdateUserInvalidUid(TestConfig config)
{
var handler = new MockMessageHandler();
var auth = config.CreateAuth(handler);
Expand Down Expand Up @@ -1487,7 +1487,7 @@ public async Task UpdateUserShortPassword(TestConfig config)

[Theory]
[MemberData(nameof(TestConfigs))]
public async void EmptyNameClaims(TestConfig config)
public async Task EmptyNameClaims(TestConfig config)
{
var handler = new MockMessageHandler();
var auth = config.CreateAuth(handler);
Expand All @@ -1502,7 +1502,7 @@ await Assert.ThrowsAsync<ArgumentException>(

[Theory]
[MemberData(nameof(TestConfigs))]
public async void LargeClaimsOverLimit(TestConfig config)
public async Task LargeClaimsOverLimit(TestConfig config)
{
var handler = new MockMessageHandler();
var auth = config.CreateAuth(handler);
Expand Down Expand Up @@ -1732,7 +1732,7 @@ public async Task RevokeRefreshTokens(TestConfig config)

[Theory]
[MemberData(nameof(TestConfigs))]
public async void RevokeRefreshTokensNoUid(TestConfig config)
public async Task RevokeRefreshTokensNoUid(TestConfig config)
{
var handler = new MockMessageHandler() { Response = CreateUserResponse };
var auth = config.CreateAuth(handler);
Expand All @@ -1745,7 +1745,7 @@ await Assert.ThrowsAsync<ArgumentException>(

[Theory]
[MemberData(nameof(TestConfigs))]
public async void RevokeRefreshTokensInvalidUid(TestConfig config)
public async Task RevokeRefreshTokensInvalidUid(TestConfig config)
{
var auth = config.CreateAuth(new MockMessageHandler());

Expand All @@ -1756,7 +1756,7 @@ await Assert.ThrowsAsync<ArgumentException>(

[Theory]
[MemberData(nameof(MainTenantTestConfigs))]
public async void CreateSessionCookieNoIdToken(TestConfig config)
public async Task CreateSessionCookieNoIdToken(TestConfig config)
{
var handler = new MockMessageHandler() { Response = "{}" };
var auth = (FirebaseAuth)config.CreateAuth(handler);
Expand All @@ -1773,7 +1773,7 @@ await Assert.ThrowsAsync<ArgumentException>(

[Theory]
[MemberData(nameof(MainTenantTestConfigs))]
public async void CreateSessionCookieNoOptions(TestConfig config)
public async Task CreateSessionCookieNoOptions(TestConfig config)
{
var handler = new MockMessageHandler() { Response = "{}" };
var auth = (FirebaseAuth)config.CreateAuth(handler);
Expand All @@ -1784,7 +1784,7 @@ await Assert.ThrowsAsync<ArgumentNullException>(

[Theory]
[MemberData(nameof(MainTenantTestConfigs))]
public async void CreateSessionCookieNoExpiresIn(TestConfig config)
public async Task CreateSessionCookieNoExpiresIn(TestConfig config)
{
var handler = new MockMessageHandler() { Response = "{}" };
var auth = (FirebaseAuth)config.CreateAuth(handler);
Expand Down
4 changes: 2 additions & 2 deletions FirebaseAdmin/FirebaseAdmin.Tests/FirebaseAdmin.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<PackageReference Include="Google.Apis.Auth" Version="1.68.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="System.Linq.Async" Version="6.0.3" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://github.com/firebase/firebase-admin-dotnet/workflows/Continuous%20Integration/badge.svg)](https://github.com/firebase/firebase-admin-dotnet/actions)
[![Continuous Integration](https://github.com/firebase/firebase-admin-dotnet/actions/workflows/ci.yml/badge.svg)](https://github.com/firebase/firebase-admin-dotnet/actions/workflows/ci.yml)
[![Nightly Builds](https://github.com/firebase/firebase-admin-dotnet/actions/workflows/nightly.yml/badge.svg)](https://github.com/firebase/firebase-admin-dotnet/actions/workflows/nightly.yml)

# Firebase Admin .NET SDK

Expand Down