UserTest.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using Quadarax.Application.QLiberace.Base.Entities;
  2. using Quadarax.Application.QLiberace.Base.Tests.Entities.Base;
  3. namespace Quadarax.Application.QLiberace.Base.Tests.Entities
  4. {
  5. [TestFixture(Category = "Dao")]
  6. public class UserTest : BaseDaoTest<User>
  7. {
  8. [Test]
  9. public void HasClassPKOK()
  10. {
  11. CheckHasPK(string.Empty);
  12. }
  13. [Test]
  14. public void HasClassTrackedOK()
  15. {
  16. CheckHasTracked(string.Empty);
  17. }
  18. [Test]
  19. public void HasClassTableOK()
  20. {
  21. CheckClassTable(string.Empty);
  22. }
  23. [Test]
  24. public void ColumnMappingsOK()
  25. {
  26. CheckColumnMappings(nameof(User.LoginName), string.Empty, true, 100, null);
  27. CheckColumnMappings(nameof(Tenant.IsLocked), string.Empty, true, null, false);
  28. }
  29. protected override void OnSetup()
  30. {
  31. }
  32. protected override void OnTearDown()
  33. {
  34. }
  35. }
  36. }