public override string ToString() { string name = _fileInfo.Name; if (_displayOptions.ShowFullPath) { name = _fileInfo.FullName; } if (!_displayOptions.ShowFileSuffix) { name = Path.ChangeExtension(name, null); } if (_displayOptions.ShowFileSize) { var fileSize = new FileSize(_fileInfo.Length); name += " (" + fileSize.ReadableSize + ")"; } if (_displayOptions.ShowFileMd5) { name += " -> " + ChecksumService.GetMd5(_fileInfo.FullName); } if (_displayOptions.ShowCounterPrefix) { name = _fileNumber.ToStringZeroPadded(_totalFiles.GetDigits()) + ": " + name; } return(name); }
public void TearDown() { this.checksumService = null; this.items = null; this.billingAddress = null; this.shippingAddress = null; this.fee = null; }
static void Main(string[] args) { var input = System.IO.File.ReadAllText(@"input.txt"); var runner = new ChecksumService(); var sum = runner.GetSum(input); Console.WriteLine(sum); var sum2 = runner.GetSumV2(input); Console.WriteLine(sum2); }
public void Initialize() { base.Initialize(); this.checksumService = _paymill.ChecksumService; this.items = new List <ShoppingCartItem>(); this.items.Add(createShopingCardItem("Rambo Poster", "John J. Rambo", 2200, 3, "898-24342-343", "http://www.store.com/items/posters/12121-rambo")); this.items.Add(createShopingCardItem("Comando Poster", "John Matrix", 3100, 1, "898-24342-341", "http://www.store.com/items/posters/12121-comando")); this.billingAddress = createAddress("John Rambo", "TH", "Buriram", "Buriram", "Wat Sawai So 2", "23/4/14", "1527", "+66 32 12-555-23"); this.shippingAddress = createAddress("Rocky Balboa", "US", "Pennsylvania", "Philadelphia", "1818 East Tusculum Street", "34/2B", "19134", "+1 215 23-555-32"); this.fee = new Fee(); this.fee.Amount = this.feeAmount; this.fee.Payment = this.feePayment; }
public void Initialize() { base.Initialize(); this.checksumService = _paymill.ChecksumService; this.items = new List<ShoppingCartItem>(); this.items.Add(createShopingCardItem("Rambo Poster", "John J. Rambo", 2200, 3, "898-24342-343", "http://www.store.com/items/posters/12121-rambo")); this.items.Add(createShopingCardItem("Comando Poster", "John Matrix", 3100, 1, "898-24342-341", "http://www.store.com/items/posters/12121-comando")); this.billingAddress = createAddress("John Rambo", "TH", "Buriram", "Buriram", "Wat Sawai So 2", "23/4/14", "1527", "+66 32 12-555-23"); this.shippingAddress = createAddress("Rocky Balboa", "US", "Pennsylvania", "Philadelphia", "1818 East Tusculum Street", "34/2B", "19134", "+1 215 23-555-32"); this.fee = new Fee(); this.fee.Amount = this.feeAmount; this.fee.Payment = this.feePayment; }
public Checksum_GetSum() { _service = new ChecksumService(); }