CommentSubmissionFormVmImplTests
Namespace: SlottyMedia.Tests.Viewmodel
Unit tests for the CommentSubmissionFormVmImpl class.
public class CommentSubmissionFormVmImplTests
Inheritance Object → CommentSubmissionFormVmImplTests
Constructors
CommentSubmissionFormVmImplTests()
public CommentSubmissionFormVmImplTests()
Methods
SetUp()
Sets up the test environment by initializing mocks and the CommentSubmissionFormVmImpl instance.
public void SetUp()
SubmitForm_SuccessfullySubmitsComment()
Tests that SubmitForm method successfully submits a comment.
public Task SubmitForm_SuccessfullySubmitsComment()
Returns
SubmitForm_DisplaysErrorWhenNotAuthenticated()
Tests that SubmitForm method displays an error when the user is not authenticated.
public Task SubmitForm_DisplaysErrorWhenNotAuthenticated()
Returns
SubmitForm_DisplaysErrorWhenTextIsEmpty()
Tests that SubmitForm method displays an error when the comment text is empty.
public Task SubmitForm_DisplaysErrorWhenTextIsEmpty()
Returns
SubmitForm_DisplaysServerErrorOnException()
Tests that SubmitForm method displays a server error when an exception is thrown.
public Task SubmitForm_DisplaysServerErrorOnException()