Skip to content

Commit 55a3d22

Browse files
committed
chore: minor refactoring
1 parent 0e0b9a5 commit 55a3d22

File tree

2 files changed

+5
-22
lines changed

2 files changed

+5
-22
lines changed

ObjectSemantics.NET.Tests/MoqModels/CustomerPayment.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ public class CustomerPayment
1010
public string ReferenceNo { get; set; }
1111
public string PaidBy { get; set; }
1212
public string PaidByMobile { get; set; }
13-
public string PaymentStatus { get; set; }
1413
public string RegisteredBy { get; set; }
1514
public string Narration { get; set; }
1615
public string CustomerName { get; set; }
@@ -19,7 +18,6 @@ public class CustomerPayment
1918
public DateTime PaymentDate { get; set; }
2019
public Customer Customer { get; set; }
2120
}
22-
2321
public class Customer
2422
{
2523
public int Id { get; set; }

ObjectSemantics.NET.Tests/TemplateFileMappingTests.cs

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public void Should_Map_Large_File_Template()
2626
PaidBy = "JOHN DOE",
2727
PaidByMobile = "N/A",
2828
PaymentDate = DateTime.Parse("2025-10-29T14:03:19.4147588"),
29-
PaymentStatus = null,
3029
RegisteredBy = "George Waynne",
3130
Customer = new Customer
3231
{
@@ -40,35 +39,21 @@ public void Should_Map_Large_File_Template()
4039
LedgerAccountName = "Cash A/C"
4140
};
4241

43-
4442
//additional headers
4543
var additionalParams = new Dictionary<string, object>
4644
{
47-
["BranchId"] = "1",
4845
["BranchName"] = "MAIN BRANCH",
49-
["BranchMobile"] = "Default",
50-
["BranchEmail"] = "Default",
51-
["BranchAddress"] = "Default",
52-
["customer_name"] = "JOHN DOE",
53-
["customer_email"] = "",
54-
["customer_mobile"] = "N/A",
55-
["customer_address"] = "",
56-
["customer_taxrefno"] = "",
57-
["customer_prevBalance"] = "19,395.00",
58-
["customer_currentBalance"] = "19,095.00",
59-
["CompanyAddress"] = "Test Address",
60-
["CompanyBusinessType"] = "RETAIL & WHOLESALE STORE",
46+
["CompanyName"] = "TEST COMPANY",
6147
["CompanyEmail"] = "[email protected]",
48+
["CompanyAddress"] = "Test Address",
6249
["CompanyMobile"] = "+2547000000001",
63-
["CompanyName"] = "TEST COMPANY",
64-
["CompanyTaxNo"] = "P000000001",
65-
["ReportsDeliveryEmailAddresses"] = "",
50+
["customer_prevBalance"] = "19,395.00",
51+
["customer_currentBalance"] = "19,095.00",
6652
["CompanyLogo"] = "logo.jpg",
67-
["footer"] = "!Thank you and Come Again!"
6853
};
6954

7055
//map
71-
var result = payment.Map(template, additionalParams);
56+
string result = payment.Map(template, additionalParams);
7257

7358
Assert.Equal(result, expectedResult);
7459
}

0 commit comments

Comments
 (0)