Skip to content

Commit

Permalink
Added new properties to BankAllocations
Browse files Browse the repository at this point in the history
  • Loading branch information
saivineeth100 committed Dec 7, 2023
1 parent d9dc197 commit a1875d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/TallyConnector.Core/Models/Voucher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,16 @@ public class BankAllocation
[XmlElement(ElementName = "AMOUNT")]
public TallyAmount? Amount { get; set; }

[XmlElement(ElementName = "PAYMENTFAVOURING")]
public string? PaymentFavouring { get; set; }

[XmlElement(ElementName = "UNIQUEREFERENCENUMBER")]
public string? UniqueReferenceNumber { get; set; }

[XmlElement(ElementName = "BANKPARTYNAME")]
public string? BankPartyName { get; set; }


internal bool IsNull()
{
if (Date == null && BankersDate == null && InstrumentDate == null)
Expand Down
8 changes: 6 additions & 2 deletions src/Tests/Services/TallyService/Main.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using TallyConnector.Core.Models;
using System.Net.NetworkInformation;
using TallyConnector.Core.Models;

namespace Tests.Services.TallyService;
internal class Main : BaseTallyServiceTest
Expand All @@ -7,7 +8,10 @@ internal class Main : BaseTallyServiceTest
[Test]
public async Task TestTallyCheck()
{
var isRunning = await _tallyService.CheckAsync();
_tallyService.Setup("localhost", 9001);
CancellationTokenSource cancellationTokenSource = new();
cancellationTokenSource.CancelAfter(5);
var isRunning = await _tallyService.CheckAsync(cancellationTokenSource.Token);
Assert.That(isRunning, Is.EqualTo(true));
}

Expand Down

0 comments on commit a1875d2

Please sign in to comment.