Search Results for

    Show / Hide Table of Contents

    Class Test_UserDto

    Tests for the UserDto class.

    Inheritance
    object
    Test_UserDto
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OEMS.UnitTests.Core.Domain
    Assembly: OEMS.UnitTests.dll
    Syntax
    [TestClass]
    public sealed class Test_UserDto
    Remarks

    This test class validates the properties and behavior of the UserDto class, ensuring it correctly maintains user data including the admin status.

    Methods

    UserDto_CreateAdminUser_HasAdminPrivileges()

    Tests creating a UserDto as an admin user.

    Declaration
    [TestMethod]
    public void UserDto_CreateAdminUser_HasAdminPrivileges()

    UserDto_CreateRegularUser_DoesNotHaveAdminPrivileges()

    Tests creating a UserDto as a regular user without admin privileges.

    Declaration
    [TestMethod]
    public void UserDto_CreateRegularUser_DoesNotHaveAdminPrivileges()

    UserDto_InitializesWithDefaultValues()

    Tests that UserDto correctly initializes with default values.

    Declaration
    [TestMethod]
    public void UserDto_InitializesWithDefaultValues()

    UserDto_IsAdmin_SetsAndGetsCorrectly()

    Tests that UserDto correctly sets and gets the IsAdmin property.

    Declaration
    [TestMethod]
    public void UserDto_IsAdmin_SetsAndGetsCorrectly()
    In this article
    Back to top Generated by DocFX