PostSubmissionFormVmImplTests
Namespace: SlottyMedia.Tests.Viewmodel
Unit tests for the PostSubmissionFormVmImpl class.
public class PostSubmissionFormVmImplTests
Inheritance Object → PostSubmissionFormVmImplTests
Constructors
PostSubmissionFormVmImplTests()
public PostSubmissionFormVmImplTests()
Methods
SetUp()
Sets up the test environment by initializing mocks and the PostSubmissionFormVmImpl instance.
public void SetUp()
HandleSpacePromptChange_ValidPrompt_UpdatesSearchedSpaces()
Tests that HandleSpacePromptChange updates the searched spaces when a valid prompt is provided.
public Task HandleSpacePromptChange_ValidPrompt_UpdatesSearchedSpaces()
Returns
HandleSpaceSelection_ValidSpaceName_UpdatesSpaceName()
Tests that HandleSpaceSelection updates the space name when a valid space name is provided.
public void HandleSpaceSelection_ValidSpaceName_UpdatesSpaceName()
HandleSpaceDeselection_ClearsSpaceName()
Tests that HandleSpaceDeselection clears the space name.
public void HandleSpaceDeselection_ClearsSpaceName()
SubmitForm_UnauthenticatedUser_SetsServerErrorMessage()
Tests that SubmitForm sets the server error message when the user is unauthenticated.
public Task SubmitForm_UnauthenticatedUser_SetsServerErrorMessage()
Returns
SubmitForm_EmptyText_SetsTextErrorMessage()
Tests that SubmitForm sets the text error message when the text is empty.
public Task SubmitForm_EmptyText_SetsTextErrorMessage()
Returns
SubmitForm_EmptySpaceName_SetsSpaceErrorMessage()
Tests that SubmitForm sets the space error message when the space name is empty.
public Task SubmitForm_EmptySpaceName_SetsSpaceErrorMessage()
Returns
SubmitForm_DisplaysServerErrorWhenExceptionOccurs()
Tests that SubmitForm displays a server error message when an exception occurs.
public Task SubmitForm_DisplaysServerErrorWhenExceptionOccurs()