SignUpFormVmImplTest
Namespace: SlottyMedia.Tests.Viewmodel.auth
This tests the viewmodel user in the Register.razor page
public class SignUpFormVmImplTest
Inheritance Object → SignUpFormVmImplTest
Constructors
SignUpFormVmImplTest()
public SignUpFormVmImplTest()
Methods
OneTimeSetup()
Sets up the necessary mocks and initializes the service before any tests are run.
public void OneTimeSetup()
TearDown()
Resets the mocks after each test.
public void TearDown()
SubmitSignUpForm_UsernameNotProvided()
Tests that an ArgumentException is thrown when the username is not provided.
public void SubmitSignUpForm_UsernameNotProvided()
SubmitSignUpForm_EmailNotProvided()
Tests that an ArgumentException is thrown when the email is not provided.
public void SubmitSignUpForm_EmailNotProvided()
SubmitSignUpForm_PasswordNotProvided()
Tests that an ArgumentException is thrown when the password is not provided.
public void SubmitSignUpForm_PasswordNotProvided()
SubmitSignUpForm_UserNameAlreadyExists()
Tests that a UsernameAlreadyExistsException is thrown when the username already exists.
public void SubmitSignUpForm_UserNameAlreadyExists()
SubmitSignUpForm_EmailAlreadyExists()
Tests that an EmailAlreadyExistsException is thrown when the email already exists.
public void SubmitSignUpForm_EmailAlreadyExists()