TenantTest.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. [SetUp]
  10. public void Setup()
  11. {
  12. }
  13. [Test]
  14. public void HasClassPKOK()
  15. {
  16. CheckHasPK(string.Empty);
  17. }
  18. [Test]
  19. public void HasClassTrackedOK()
  20. {
  21. CheckHasTracked(string.Empty);
  22. }
  23. [Test]
  24. public void HasClassTableOK()
  25. {
  26. CheckClassTable(string.Empty);
  27. }
  28. [Test]
  29. public void ColumnMappingsOK()
  30. {
  31. CheckColumnName(null);
  32. CheckColumnMappings(nameof(Tenant.IsLocked), string.Empty,true, null,null);
  33. Assert.IsTrue(ReflectionUtils.HasPropertyGetter(typeof(Tenant), nameof(Tenant.LastAccess), false));
  34. }
  35. }
  36. }