Skip to content

Commit

Permalink
Fix writer
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco committed Jul 22, 2023
1 parent 9727cd7 commit 87f7571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BancosBrasileiros.MergeTool/Helpers/Writer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

namespace BancosBrasileiros.MergeTool.Helpers;

using CrispyWaffle.Serialization;
using Dto;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using CrispyWaffle.Serialization;
using Dto;

/// <summary>
/// Class Writer.
Expand Down Expand Up @@ -103,7 +103,7 @@ private static void SaveMarkdown(IList<Bank> banks)
lines.AddRange(
banks.Select(
bank =>
$"{bank.Compe:000} | {bank.Ispb:00000000} | {bank.Document} | {bank.LongName} | {bank.ShortName} | {(string.IsNullOrWhiteSpace(bank.Network) ? "-" : bank.Network)} | {(string.IsNullOrWhiteSpace(bank.Type) ? "-" : bank.Type)} | {(string.IsNullOrWhiteSpace(bank.PixType) ? "-" : bank.PixType)} | {(string.IsNullOrWhiteSpace(bank.ChargeStr) ? "-" : bank.Charge)} | {(string.IsNullOrWhiteSpace(bank.CreditDocumentStr) ? "-" : bank.CreditDocument)} | {(bank.LegalCheque ? "sim" : "não")} | {(string.IsNullOrWhiteSpace(bank.SalaryPortability) ? "-" : bank.SalaryPortability)} | {(bank.Products == null ? "-" : string.Join(",", bank.Products))} | {(string.IsNullOrWhiteSpace(bank.Url) ? "-" : bank.Url)} | {(string.IsNullOrWhiteSpace(bank.DateOperationStarted) ? "-" : bank.DateOperationStarted)} | {(string.IsNullOrWhiteSpace(bank.DatePixStarted) ? "-" : bank.DatePixStarted)} | {bank.DateRegistered:O} | {bank.DateUpdated:O}"
$"{bank.Compe:000} | {bank.Ispb:00000000} | {bank.Document} | {bank.LongName} | {bank.ShortName} | {(string.IsNullOrWhiteSpace(bank.Network) ? "-" : bank.Network)} | {(string.IsNullOrWhiteSpace(bank.Type) ? "-" : bank.Type)} | {(string.IsNullOrWhiteSpace(bank.PixType) ? "-" : bank.PixType)} | {(string.IsNullOrWhiteSpace(bank.ChargeStr) || !bank.Charge.HasValue ? "-" : (bank.Charge.Value ? "sim" : "não"))} | {(string.IsNullOrWhiteSpace(bank.CreditDocumentStr) || !bank.CreditDocument.HasValue ? "-" : (bank.CreditDocument.Value ? "sim" : "não"))} | {(bank.LegalCheque ? "sim" : "não")} | {(string.IsNullOrWhiteSpace(bank.SalaryPortability) ? "-" : bank.SalaryPortability)} | {(bank.Products == null ? "-" : string.Join(",", bank.Products))} | {(string.IsNullOrWhiteSpace(bank.Url) ? "-" : bank.Url)} | {(string.IsNullOrWhiteSpace(bank.DateOperationStarted) ? "-" : bank.DateOperationStarted)} | {(string.IsNullOrWhiteSpace(bank.DatePixStarted) ? "-" : bank.DatePixStarted)} | {bank.DateRegistered:O} | {bank.DateUpdated:O}"
)
);

Expand Down

0 comments on commit 87f7571

Please sign in to comment.