AyCode.Core/AyCode.Core.Tests/TestModels
Loretta 1661ffc4c6 [LOADED_DOCS: 3 files, no new loads]
NativeAOT: full DAMs propagation, trimmer-safe serializers

- Propagate [DynamicallyAccessedMembers] from all public Serialize<T>/Deserialize<T> APIs through all type/property metadata and factories, centralizing requirements in TypeMetadataBase.RequiredMembers.
- Add [UnconditionalSuppressMessage] for known trimmer blind spots (polymorphism, inheritance, nested types) with detailed justifications.
- Update all internal delegate/factory signatures to preserve DAMs context.
- Annotate public APIs for AOT safety; document consumer requirements for SGen or rooted model assemblies.
- Update BINARY_FEATURES.md with NativeAOT/trimmer compatibility, guidance, and limitations.
- Adjust benchmark project for AOT/JIT parity and add i18n test data.
- No breaking API changes; SGen and Runtime paths remain, now fully AOT-compatible.
2026-05-03 22:35:40 +02:00
..
AcSerializerModels.cs Refactor SGen: property/object marker bridges, FixObj support 2026-03-10 17:32:00 +01:00
BenchmarkTestDataProvider.cs [LOADED_DOCS: 3 files, no new loads] 2026-05-03 22:35:40 +02:00
GeneratedSerializerTestModels.cs Add AcBinary Source Generator for fast serialization 2026-01-06 08:58:34 +01:00
README.md Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
SharedTestModels.cs [LOADED_DOCS: 3 files, no new loads] 2026-05-01 14:01:23 +02:00
SignalRTestInfrastructure.cs Add binary serialization support for SignalR responses 2025-12-12 21:40:48 +01:00
StockTakingTestModels.cs Add expression serialization & chain API for JSON deserialization 2025-12-29 15:28:46 +01:00
TestDataFactory.cs Improve shared reference handling & benchmark realism 2026-01-24 01:39:30 +01:00
TestLogger.cs Add expression serialization & chain API for JSON deserialization 2025-12-29 15:28:46 +01:00

README.md

TestModels

Shared test entities, enums, data factories, and SignalR test infrastructure. Used across test and benchmark projects.

Key Files

  • SharedTestModels.cs — Enums (TestStatus, TestPriority, TestUserRole) and shared IId types (SharedTag, SharedCategory, SharedUser, MetadataInfo). Multi-serializer: [AcBinarySerializable], [MessagePackObject], [MemoryPackable].
  • AcSerializerModels.cs — 30+ test models: simple, nested, collections, nullable, StockTaking hierarchy, circular references, generics, navigation properties, schema mismatch scenarios.
  • GeneratedSerializerTestModels.cs — [AcBinarySerializable] models for source generator testing.
  • StockTakingTestModels.cs — Production-like hierarchy: BaseEntity → MgEntityBase → MgStockTaking.
  • TestDataFactory.cs — Centralized factory with ID sequencing: CreateTag(), CreateCategory(), CreateUser(), CreateOrder(), CreateOrderItem().
  • SignalRTestInfrastructure.cs — SignalRMessageFactory, DTOs, CommonSignalRTags, SignalRBenchmarkData.
  • TestLogger.cs — Logger with capture for assertions: HasErrorLogs, HasWarningLogs, GetErrorMessages().