TestClassWithNestedClass.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace S7.Net.UnitTest.Helpers
  7. {
  8. class TestClassInnerWithBool
  9. {
  10. public bool BitVariable00 { get; set; }
  11. }
  12. class TestClassInnerWithByte
  13. {
  14. public byte ByteVariable00 { get; set; }
  15. }
  16. class TestClassInnerWithShort
  17. {
  18. public short ShortVarialbe00 { get; set; }
  19. }
  20. class TestClassWithNestedClass
  21. {
  22. /// <summary>
  23. /// DB1.DBX0.0
  24. /// </summary>
  25. public bool BitVariable00 { get; set; }
  26. /// <summary>
  27. /// DB1.DBX0.1
  28. /// </summary>
  29. public TestClassInnerWithBool BitVariable01 { get; set; } = new TestClassInnerWithBool();
  30. /// <summary>
  31. /// DB1.DBB1.0
  32. /// </summary>
  33. public TestClassInnerWithByte ByteVariable02 { get; set; } = new TestClassInnerWithByte();
  34. /// <summary>
  35. /// DB1.DBX2.0
  36. /// </summary>
  37. public bool BitVariable03 { get; set; }
  38. /// <summary>
  39. /// DB1.DBW4
  40. /// </summary>
  41. public TestClassInnerWithShort ShortVariable04 { get; set; } = new TestClassInnerWithShort();
  42. }
  43. }