Expanded and clarified solution/project documentation: - Added all top-level docs and docs/ folder as solution items in .sln files - Inserted maintenance notices in all project and subfolder READMEs: require .md sync with code - Main READMEs now include project tables with TFM, purpose, and README links - ARCHITECTURE.md now details dependency graph and TFM rationale - CONVENTIONS.md and copilot-instructions.md require code reuse, no redundancy - Glossary and conventions updated to require terminology/rule updates with code changes - Emphasized DLL-only AyCode.Core refs and nopCommerce .NET 9.0 requirement - Clarified domain terms and intentional typos - No code logic changes; documentation and guidance only |
||
|---|---|---|
| .. | ||
| MgGridBaseTests.cs | ||
| README.md | ||
| TestMgGrid.cs | ||
README.md
Grids
Grid component integration tests for MgGridBase layout persistence, column rendering, and URL link functionality.
Key Files
TestMgGrid.cs-- Test infrastructure for grid testing:TestGridOrderItemDataSource-- DataSource with the 3-parameter constructor required byMgGridBase.OnInitializedAsyncviaActivator.CreateInstance.DynamicColumnAddingEventArgs-- Event args for customizing dynamically added columns.TestMgGridBase<...>-- Abstract generic test grid that overrides layout persistence with in-memoryDictionarystorage and auto-builds columns fromTDataItemproperties via reflection.TestMgGridOrderItem-- Concrete test grid bound toTestOrderItementities.
MgGridBaseTests.cs--[TestClass]with tests for:- Column width persistence across grid re-renders.
- Layout storage population after render.
- Separate layout keys for differently named grids.
- Master grid detection.
- Reflection-based column building (verifies Id, ProductName, Quantity columns).
MgGridDataColumn.UrlLinkrendering with token replacement.