private void WriteCars(IEnumerable <Car> deserializeCar)
        {
            ParameterValidation.AssertNotNullOrEmpty(deserializeCar, nameof(deserializeCar));

            foreach (var item in deserializeCar)
            {
                this.writer.Write($"\t{item.BrandName} {item.ModelYear} {item.Price} {item.CountryOfCarProducing}");
            }
        }
 public TxtFileSearcher(string sourceDirectory, string partialNameOfFile)
 {
     ParameterValidation.AssertNotNullOrEmpty(partialNameOfFile, nameof(partialNameOfFile));
     this.SourceDirectory   = sourceDirectory;
     this.PartialNameOfFile = partialNameOfFile;
 }
示例#3
0
 public ContentOfTheDirectory(string sourceDirectory)
 {
     ParameterValidation.AssertNotNullOrEmpty(sourceDirectory, nameof(sourceDirectory));
     this.SourceDirectory = sourceDirectory;
 }