-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
LMBQ-253: Adding Lombiq.LoginAsAnybody submodule
- Loading branch information
Showing
12 changed files
with
105 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
NuGetTest/test/Lombiq.OSOCE.NuGet.Tests.UI/Tests/ModuleTests/BehaviorLoginAsAnybodyTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Lombiq.LoginAsAnybody.Tests.UI.Extensions; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Lombiq.OSOCE.NuGet.Tests.UI.Tests.ModuleTests; | ||
|
||
public class BehaviorLoginAsAnybodyTests : UITestBase | ||
{ | ||
public BehaviorLoginAsAnybodyTests(ITestOutputHelper testOutputHelper) | ||
: base(testOutputHelper) | ||
{ | ||
} | ||
|
||
[Fact] | ||
public Task SwitchingUserShouldWorkCorrectly() => | ||
ExecuteTestAfterSetupAsync(context => context.TestLoginAsAnybodyAsync()); | ||
|
||
[Fact] | ||
public Task PermissionCheckShouldWorkCorrectly() => | ||
ExecuteTestAfterSetupAsync( | ||
context => context.TestLoginAsAnybodyAuthorizationAsync(), | ||
changeConfiguration: Configurations.IgnoreUnauthorizedBrowserLogEntries); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Lombiq.LoginAsAnybody
added at
c82355
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
test/Lombiq.OSOCE.Tests.UI/Tests/ModuleTests/BehaviorLoginAsAnybodyTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Lombiq.LoginAsAnybody.Tests.UI.Extensions; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Lombiq.OSOCE.Tests.UI.Tests.ModuleTests; | ||
|
||
public class BehaviorLoginAsAnybodyTests : UITestBase | ||
{ | ||
public BehaviorLoginAsAnybodyTests(ITestOutputHelper testOutputHelper) | ||
: base(testOutputHelper) | ||
{ | ||
} | ||
|
||
[Fact] | ||
public Task SwitchingUserShouldWorkCorrectly() => | ||
ExecuteTestAfterSetupAsync(context => context.TestLoginAsAnybodyAsync()); | ||
|
||
[Fact] | ||
public Task PermissionCheckShouldWorkCorrectly() => | ||
ExecuteTestAfterSetupAsync( | ||
context => context.TestLoginAsAnybodyAuthorizationAsync(), | ||
changeConfiguration: Configurations.IgnoreUnauthorizedBrowserLogEntries); | ||
} |