TenantTest.cs 1.1 KB

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