Class Test_UserDto
Tests for the UserDto class.
Inherited Members
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()