SignUpServiceTest
Namespace: SlottyMedia.Tests.Auth
Tests the Service used for registering a new user in the database.
public class SignUpServiceTest
Inheritance Object → SignUpServiceTest
Constructors
SignUpServiceTest()
public SignUpServiceTest()
Methods
OneTimeSetup()
Sets up the test fixture. Initializes the Supabase client and mocks the necessary services.
public void OneTimeSetup()
Setup()
Sets up each test. Generates a new UUID for the username, email, and password.
public void Setup()
TearDown()
Tears down each test. Resets the mocks and clears the session.
public void TearDown()
SignUp_UserAlreadyExists()
Tests that SignUp throws a UsernameAlreadyExistsException when the username already exists.
public void SignUp_UserAlreadyExists()
SignUp()
Tests that SignUp successfully registers a new user and sets the session.
public Task SignUp()