@@ -15,8 +15,8 @@ public void CanMap2Xml()
1515 InvoiceDto invoiceDto = new ( )
1616 {
1717 Id = "1" ,
18- IssueDate = DateTime . UtcNow ,
19- DueDate = DateTime . UtcNow . AddDays ( 14 ) ,
18+ IssueDate = new DateTime ( 2025 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
19+ DueDate = new DateTime ( 2025 , 1 , 14 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
2020 InvoiceTypeCode = "380" ,
2121 Note = "Test Note" ,
2222 DocumentCurrencyCode = "EUR" ,
@@ -42,7 +42,7 @@ public void CanMap2Xml_NullableFields()
4242 InvoiceDto invoiceDto = new ( )
4343 {
4444 Id = "1" ,
45- IssueDate = DateTime . UtcNow ,
45+ IssueDate = new DateTime ( 2025 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
4646 DueDate = null ,
4747 InvoiceTypeCode = "380" ,
4848 DocumentCurrencyCode = "EUR" ,
@@ -70,8 +70,8 @@ public void CanMap2Dto()
7070 XmlInvoice xmlInvoice = new ( )
7171 {
7272 Id = new ( ) { Content = "1" } ,
73- IssueDate = DateTime . UtcNow ,
74- DueDate = DateTime . UtcNow . AddDays ( 14 ) ,
73+ IssueDate = new DateTime ( 2025 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
74+ DueDate = new DateTime ( 2025 , 1 , 14 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
7575 InvoiceTypeCode = "380" ,
7676 Note = "Test Note" ,
7777 DocumentCurrencyCode = "EUR" ,
@@ -96,8 +96,8 @@ public void CanMapTwiceBase()
9696 InvoiceDto invoiceDto = new ( )
9797 {
9898 Id = "1" ,
99- IssueDate = DateTime . UtcNow ,
100- DueDate = DateTime . UtcNow . AddDays ( 14 ) ,
99+ IssueDate = new DateTime ( 2025 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
100+ DueDate = new DateTime ( 2025 , 1 , 14 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
101101 InvoiceTypeCode = "380" ,
102102 Note = "Test Note" ,
103103 DocumentCurrencyCode = "EUR" ,
@@ -106,7 +106,7 @@ public void CanMapTwiceBase()
106106
107107 XmlInvoice xmlInvoice = XmlInvoiceMapper . MapToXmlInvoice ( invoiceDto ) ;
108108 InvoiceDto invoiceDto2 = XmlInvoiceMapper . MapToInvoiceDto ( xmlInvoice ) ;
109-
109+
110110 var json1 = JsonSerializer . Serialize ( invoiceDto , jsonOptions ) ;
111111 var json2 = JsonSerializer . Serialize ( invoiceDto2 , jsonOptions ) ;
112112
@@ -119,20 +119,20 @@ public void CanMapTwiceWithDocContent()
119119 InvoiceDto invoiceDto = new ( )
120120 {
121121 Id = "1" ,
122- IssueDate = DateTime . UtcNow ,
123- DueDate = DateTime . UtcNow . AddDays ( 14 ) ,
122+ IssueDate = new DateTime ( 2025 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
123+ DueDate = new DateTime ( 2025 , 1 , 14 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
124124 InvoiceTypeCode = "380" ,
125125 Note = "Test Note" ,
126126 DocumentCurrencyCode = "EUR" ,
127127 BuyerReference = "123" ,
128- AdditionalDocumentReference = new ( )
128+ AdditionalDocumentReferences = [ new ( )
129129 {
130130 Id = "invoice 123" ,
131131 DocumentDescription = "human readable pdf invoice" ,
132132 MimeCode = "application/pdf" ,
133133 FileName = "invoice.pdf" ,
134134 Content = "ZWYNCjE0OTk0Nw0KJSVFT0Y=" ,
135- }
135+ } ]
136136 } ;
137137
138138 XmlInvoice xmlInvoice = XmlInvoiceMapper . MapToXmlInvoice ( invoiceDto ) ;
@@ -150,8 +150,8 @@ public void CanMapTwiceWithParticipants()
150150 InvoiceDto invoiceDto = new ( )
151151 {
152152 Id = "1" ,
153- IssueDate = DateTime . UtcNow ,
154- DueDate = DateTime . UtcNow . AddDays ( 14 ) ,
153+ IssueDate = new DateTime ( 2025 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
154+ DueDate = new DateTime ( 2025 , 1 , 14 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
155155 InvoiceTypeCode = "380" ,
156156 Note = "Test Note" ,
157157 DocumentCurrencyCode = "EUR" ,
@@ -198,8 +198,8 @@ public void CanMapTwiceWithPaymentInstructions()
198198 InvoiceDto invoiceDto = new ( )
199199 {
200200 Id = "1" ,
201- IssueDate = DateTime . UtcNow ,
202- DueDate = DateTime . UtcNow . AddDays ( 14 ) ,
201+ IssueDate = new DateTime ( 2025 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
202+ DueDate = new DateTime ( 2025 , 1 , 14 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
203203 InvoiceTypeCode = "380" ,
204204 Note = "Test Note" ,
205205 DocumentCurrencyCode = "EUR" ,
@@ -208,6 +208,7 @@ public void CanMapTwiceWithPaymentInstructions()
208208 {
209209 PaymentMeansTypeCode = "30" ,
210210 IBAN = "DE21081508151234123412" ,
211+ BIC = "BIC12345" ,
211212 BankName = "Test Bank"
212213 }
213214 } ;
@@ -227,8 +228,8 @@ public void CanMapTwiceWithTaxTotal()
227228 InvoiceDto invoiceDto = new ( )
228229 {
229230 Id = "1" ,
230- IssueDate = DateTime . UtcNow ,
231- DueDate = DateTime . UtcNow . AddDays ( 14 ) ,
231+ IssueDate = new DateTime ( 2025 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
232+ DueDate = new DateTime ( 2025 , 1 , 14 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
232233 InvoiceTypeCode = "380" ,
233234 Note = "Test Note" ,
234235 DocumentCurrencyCode = "EUR" ,
@@ -258,8 +259,8 @@ public void CanMapTwiceWithMonetaryTotal()
258259 InvoiceDto invoiceDto = new ( )
259260 {
260261 Id = "1" ,
261- IssueDate = DateTime . UtcNow ,
262- DueDate = DateTime . UtcNow . AddDays ( 14 ) ,
262+ IssueDate = new DateTime ( 2025 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
263+ DueDate = new DateTime ( 2025 , 1 , 14 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
263264 InvoiceTypeCode = "380" ,
264265 Note = "Test Note" ,
265266 DocumentCurrencyCode = "EUR" ,
@@ -288,8 +289,8 @@ public void CanMapTwiceWithInvoiceLine()
288289 InvoiceDto invoiceDto = new ( )
289290 {
290291 Id = "1" ,
291- IssueDate = DateTime . UtcNow ,
292- DueDate = DateTime . UtcNow . AddDays ( 14 ) ,
292+ IssueDate = new DateTime ( 2025 , 1 , 1 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
293+ DueDate = new DateTime ( 2025 , 1 , 14 , 0 , 0 , 0 , DateTimeKind . Utc ) ,
293294 InvoiceTypeCode = "380" ,
294295 Note = "Test Note" ,
295296 DocumentCurrencyCode = "EUR" ,
0 commit comments