Skip to content

Commit 0e0b9a5

Browse files
committed
chore: tempalat test
1 parent 3fecfa6 commit 0e0b9a5

2 files changed

Lines changed: 5 additions & 82 deletions

File tree

ObjectSemantics.NET.Tests/MoqModels/CustomerPayment.cs

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,17 @@ public class CustomerPayment
77
public int Id { get; set; }
88
public int CustomerId { get; set; }
99
public double Amount { get; set; }
10-
public int LedgerAccountId { get; set; }
1110
public string ReferenceNo { get; set; }
1211
public string PaidBy { get; set; }
1312
public string PaidByMobile { get; set; }
14-
public DateTime PaymentDate { get; set; }
1513
public string PaymentStatus { get; set; }
1614
public string RegisteredBy { get; set; }
17-
public Customer Customer { get; set; }
1815
public string Narration { get; set; }
1916
public string CustomerName { get; set; }
2017
public string LedgerAccountName { get; set; }
21-
public LedgerAccount LedgerAccount { get; set; }
22-
public int CompanyBranchId { get; set; }
23-
public object CompanyBranch { get; set; }
18+
public int LedgerAccountId { get; set; }
19+
public DateTime PaymentDate { get; set; }
20+
public Customer Customer { get; set; }
2421
}
2522

2623
public class Customer
@@ -29,41 +26,5 @@ public class Customer
2926
public string FirstName { get; set; }
3027
public string LastName { get; set; }
3128
public string CompanyName { get; set; }
32-
public string PrimaryMobile { get; set; }
33-
public string SecondaryMobile { get; set; }
34-
public string PrimaryEmail { get; set; }
35-
public string SecondaryEmail { get; set; }
36-
public string Address { get; set; }
37-
public double OpeningBalance { get; set; }
38-
public DateTime OpeningDate { get; set; }
39-
public double CurrentBalance { get; set; }
40-
public double CreditLimit { get; set; }
41-
public string TaxRefNo { get; set; }
42-
public string BankAccount { get; set; }
43-
public string RoutingNo { get; set; }
44-
public string MoreDetails { get; set; }
45-
public DateTime LastModified { get; set; }
46-
public int LastModifiedAtBranchId { get; set; }
47-
public string ModifiedBy { get; set; }
48-
public string DefaultPriceScheme { get; set; }
49-
public bool IsActive { get; set; }
50-
public string Status { get; set; }
51-
public string FullName { get; set; }
52-
}
53-
54-
public class LedgerAccount
55-
{
56-
public int Id { get; set; }
57-
public int LedgerAccountTypeId { get; set; }
58-
public string AccountCode { get; set; }
59-
public string AccountName { get; set; }
60-
public string Description { get; set; }
61-
public double OpeningBalance { get; set; }
62-
public DateTime OpeningDate { get; set; }
63-
public bool IsBankAccount { get; set; }
64-
public string BankAccountName { get; set; }
65-
public string BankAccountNumber { get; set; }
66-
public string AcCode { get; set; }
67-
public object LedgerAccountType { get; set; }
6829
}
6930
}

ObjectSemantics.NET.Tests/TemplateFileMappingTests.cs

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -34,47 +34,10 @@ public void Should_Map_Large_File_Template()
3434
FirstName = "JOHN DOE",
3535
LastName = "ENTERPRISES",
3636
CompanyName = "John Doe Enterprises",
37-
PrimaryMobile = "N/A",
38-
SecondaryMobile = null,
39-
PrimaryEmail = "",
40-
SecondaryEmail = null,
41-
Address = "",
42-
OpeningBalance = 0.0,
43-
OpeningDate = DateTime.Parse("2023-11-13T00:00:00"),
44-
CurrentBalance = 19095.0,
45-
CreditLimit = 0.0,
46-
TaxRefNo = "",
47-
BankAccount = null,
48-
RoutingNo = null,
49-
MoreDetails = "",
50-
LastModified = DateTime.Parse("2024-06-18T18:11:41.7819616"),
51-
LastModifiedAtBranchId = 1,
52-
ModifiedBy = "Joe Maina",
53-
DefaultPriceScheme = "SELLING PRICE",
54-
IsActive = true,
55-
Status = "ACTIVE",
56-
FullName = "Afrique"
5737
},
5838
Narration = null,
5939
CustomerName = "JOHN DOE ENTERPRISES",
60-
LedgerAccountName = "Cash A/C",
61-
LedgerAccount = new LedgerAccount
62-
{
63-
Id = 1,
64-
LedgerAccountTypeId = 4,
65-
AccountCode = "82187",
66-
AccountName = "Cash A/C",
67-
Description = "Current Cash",
68-
OpeningBalance = 0.0,
69-
OpeningDate = DateTime.Parse("2020-03-20T10:39:12"),
70-
IsBankAccount = false,
71-
BankAccountName = null,
72-
BankAccountNumber = null,
73-
AcCode = "82187",
74-
LedgerAccountType = null
75-
},
76-
CompanyBranchId = 1,
77-
CompanyBranch = null
40+
LedgerAccountName = "Cash A/C"
7841
};
7942

8043

@@ -86,7 +49,7 @@ public void Should_Map_Large_File_Template()
8649
["BranchMobile"] = "Default",
8750
["BranchEmail"] = "Default",
8851
["BranchAddress"] = "Default",
89-
["customer_name"] = "Afrique",
52+
["customer_name"] = "JOHN DOE",
9053
["customer_email"] = "",
9154
["customer_mobile"] = "N/A",
9255
["customer_address"] = "",
@@ -104,7 +67,6 @@ public void Should_Map_Large_File_Template()
10467
["footer"] = "!Thank you and Come Again!"
10568
};
10669

107-
10870
//map
10971
var result = payment.Map(template, additionalParams);
11072

0 commit comments

Comments
 (0)