mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 06:11:10 +00:00
Refactors the test fixtures and their consumers to compose other fixtures instead of instantiating models inline
This commit is contained in:
1 parent
0abda472c6
commit
3aadd6de84
157 files changed
+1312
-597
No files matched your search
+4
-1
@@ -1,4 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.Fixtures.Core.Requests.Authorization;
|
||||
using Lumina.Contracts.Requests.Authorization;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
@@ -11,11 +12,13 @@ namespace Lumina.Contracts.UnitTests.Requests.Authorization;
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GetUserPermissionsRequestTests
|
||||
{
|
||||
private readonly GetUserPermissionsRequestFixture _getUserPermissionsRequestFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void Constructor_WhenPassingNullUserId_ShouldReturnNullUserId()
|
||||
{
|
||||
// Act
|
||||
GetUserPermissionsRequest sut = new(UserId: null);
|
||||
GetUserPermissionsRequest sut = _getUserPermissionsRequestFixture.Create(includeUserId: false);
|
||||
|
||||
// Assert
|
||||
Assert.Null(sut.UserId);
|
||||
|
||||
Reference in new issue
Block a user