### Test Model with Dual Attributes Source: https://github.com/accounting-companion/tallyconnector/blob/master/src/Tests/TallyConnector.MigrationTests/README.md Example of a test model inheriting from TallyXml and decorated with both System.Xml.Serialization and SourceGeneratorUtils attributes for dual serialization approaches. ```csharp [SysXml.XmlRoot(ElementName = "COMPANY")] [XmlElement("COMPANY")] [XmlSourceGenerator.Abstractions.XmlAutoGenerated] public partial class TestCompany : TallyXml { [SysXml.XmlElement(ElementName = "NAME")] [XmlElement("NAME")] public string? Name { get; set; } } ``` -------------------------------- ### Fetch Ledgers using TallyPrimeService Source: https://github.com/accounting-companion/tallyconnector/blob/master/docs/Readme.md This snippet demonstrates how to instantiate the TallyPrimeService, set up the connection, and fetch ledger data asynchronously. Ensure Tally is running and accessible at the specified host and port. ```csharp using TallyConnector.Services; using TallyConnector.Models.TallyPrime.V6; using TallyConnector.Core.Models.Request; // Instantiate the service TallyPrimeService primeService = new(); // Setup connection (default is localhost:9000) primeService.Setup("http://localhost", 9000); // Fetch Ledgers var ledgers = await primeService.GetLedgersAsync(); ``` -------------------------------- ### Build TallyConnector.MigrationTests Project (Command Line) Source: https://github.com/accounting-companion/tallyconnector/blob/master/src/Tests/TallyConnector.MigrationTests/QUICK_START.md Navigate to the project's root directory and execute the dotnet build command for the migration tests project. ```bash cd \\saivineeth\d\SourceCode\AccountingCompanion\TallyConnector_New dotnet build src\Tests\TallyConnector.MigrationTests ``` -------------------------------- ### Run TallyConnector.MigrationTests (Command Line) Source: https://github.com/accounting-companion/tallyconnector/blob/master/src/Tests/TallyConnector.MigrationTests/QUICK_START.md Navigate to the migration tests project directory and execute the dotnet test command to run all tests. ```bash cd \\saivineeth\d\SourceCode\AccountingCompanion\TallyConnector_New\src\Tests\TallyConnector.MigrationTests dotnet test ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.