AuthController work

This commit is contained in:
Artemy
2025-06-18 16:55:19 +07:00
parent 2c2c2b805c
commit 7d518c0882
26 changed files with 397 additions and 63 deletions
@@ -46,7 +46,7 @@ public class UserValidatorTests
User user = new User()
{
PasswordHash = _fixture.Create<string>(),
Name = _fixture.Create<string>(),
Username = _fixture.Create<string>(),
Id = Guid.Empty,
CreatedOn = DateOnly.FromDateTime(DateTime.Now),
};
@@ -62,7 +62,7 @@ public class UserValidatorTests
User user = new User()
{
PasswordHash = _fixture.Create<string>(),
Name = _fixture.Create<string>(),
Username = _fixture.Create<string>(),
Id = Guid.Empty,
CreatedOn = DateOnly.FromDateTime(DateTime.Now),
};
@@ -78,7 +78,7 @@ public class UserValidatorTests
User user = new User()
{
PasswordHash = string.Empty,
Name = _fixture.Create<string>(),
Username = _fixture.Create<string>(),
Id = Guid.NewGuid(),
CreatedOn = DateOnly.FromDateTime(DateTime.Now),
};
@@ -94,7 +94,7 @@ public class UserValidatorTests
User user = new User()
{
PasswordHash = string.Empty,
Name = _fixture.Create<string>(),
Username = _fixture.Create<string>(),
Id = Guid.NewGuid(),
CreatedOn = DateOnly.FromDateTime(DateTime.Now),
};
@@ -110,7 +110,7 @@ public class UserValidatorTests
User user = new User()
{
PasswordHash = _fixture.Create<string>(),
Name = String.Empty,
Username = String.Empty,
Id = Guid.NewGuid(),
CreatedOn = DateOnly.FromDateTime(DateTime.Now),
};
@@ -126,7 +126,7 @@ public class UserValidatorTests
User user = new User()
{
PasswordHash = _fixture.Create<string>(),
Name = String.Empty,
Username = String.Empty,
Id = Guid.NewGuid(),
CreatedOn = DateOnly.FromDateTime(DateTime.Now),
};
@@ -142,7 +142,7 @@ public class UserValidatorTests
User user = new User()
{
PasswordHash = _fixture.Create<string>(),
Name = _fixture.Create<string>(),
Username = _fixture.Create<string>(),
Id = Guid.NewGuid(),
CreatedOn = DateOnly.FromDateTime(DateTime.Now),
};
@@ -158,7 +158,7 @@ public class UserValidatorTests
User user = new User()
{
PasswordHash = _fixture.Create<string>(),
Name = _fixture.Create<string>(),
Username = _fixture.Create<string>(),
Id = Guid.NewGuid(),
CreatedOn = DateOnly.FromDateTime(DateTime.Now),
};
@@ -0,0 +1,11 @@
namespace Govor.API.Tests.UnitTests.Services;
[TestFixture]
public class AuthServiceTests
{
public void SetUp()
{
}
}