Skip to content

CommentSubmissionFormVmImplTests

Namespace: SlottyMedia.Tests.Viewmodel

Unit tests for the CommentSubmissionFormVmImpl class.

public class CommentSubmissionFormVmImplTests

Inheritance ObjectCommentSubmissionFormVmImplTests

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

Task

SubmitForm_DisplaysErrorWhenNotAuthenticated()

Tests that SubmitForm method displays an error when the user is not authenticated.

public Task SubmitForm_DisplaysErrorWhenNotAuthenticated()

Returns

Task

SubmitForm_DisplaysErrorWhenTextIsEmpty()

Tests that SubmitForm method displays an error when the comment text is empty.

public Task SubmitForm_DisplaysErrorWhenTextIsEmpty()

Returns

Task

SubmitForm_DisplaysServerErrorOnException()

Tests that SubmitForm method displays a server error when an exception is thrown.

public Task SubmitForm_DisplaysServerErrorOnException()

Returns

Task