public IReadOnlyList <string> ProvideParameters() { var parameters = new List <string>(); writer.WriteLine("Enter a supplier name:"); var supplierName = validator.Validate(); parameters.Add(supplierName); writer.WriteLine("Enter a Identification Number /exactly 10 digits/:"); var identificationNumber = validator.Validate(); parameters.Add(identificationNumber); writer.WriteLine("Enter a company representative"); var representedBy = validator.Validate(); parameters.Add(representedBy); writer.WriteLine("Enter a company address"); var companyAddress = validator.Validate(); parameters.Add(companyAddress); writer.WriteLine("Enter a phone number"); var phoneNumber = reader.ReadLine(); parameters.Add(phoneNumber.ToString()); return(parameters); }
public IReadOnlyList <string> ProvideParameters() { var parameters = new List <string>(); writer.WriteLine("Enter customer's name"); var name = validator.Validate(); parameters.Add(name); writer.WriteLine("Enter product names separated by comma"); var productNames = validator.Validate(); parameters.Add(productNames); return(parameters); }
public IReadOnlyList <string> ProvideParameters() { var parameters = new List <string>(); writer.WriteLine("Enter a Supplier name:"); var supplierName = validator.Validate(); parameters.Add(supplierName); writer.WriteLine("Enter the new representer:"); var newRepresenter = validator.Validate(); parameters.Add(newRepresenter); return(parameters); }
public IReadOnlyList <string> ProvideParameters() { var parameters = new List <string>(); writer.WriteLine("Enter a first name:"); var firstName = validator.Validate(); parameters.Add(firstName); writer.WriteLine("Enter a second name:"); var secondName = validator.Validate(); parameters.Add(secondName); writer.WriteLine("Enter an e-mail"); var eMail = reader.ReadLine(); parameters.Add(eMail.ToString()); return(parameters); }
public IReadOnlyList <string> ProvideParameters() { var parameters = new List <string>(); writer.WriteLine("Enter category name:"); var categoryName = validator.Validate(); parameters.Add(categoryName); return(parameters); }
public IReadOnlyList <string> ProvideParameters() { var parameters = new List <string>(); writer.WriteLine("Enter an order Id"); var name = validator.Validate(); parameters.Add(name); return(parameters); }
public IReadOnlyList <string> ProvideParameters() { var parameters = new List <string>(); writer.WriteLine("Enter a product quantity:"); var quantity = validator.Validate(); parameters.Add(quantity); return(parameters); }
public IReadOnlyList <string> ProvideParameters() { var parameters = new List <string>(); writer.WriteLine("Enter product name:"); var productName = validator.Validate(); parameters.Add(productName); writer.WriteLine("Enter category name:"); var categoryName = validator.Validate(); parameters.Add(categoryName); writer.WriteLine("Enter product quantity:"); var productQuantity = validator.Validate(); parameters.Add(productQuantity); writer.WriteLine("Enter buy price:"); var buyPrice = validator.Validate(); parameters.Add(buyPrice); writer.WriteLine("Enter sell price:"); var sellPrice = validator.Validate(); parameters.Add(sellPrice); writer.WriteLine("Enter suppliers separated by comma:"); var suppliers = validator.Validate(); parameters.Add(suppliers); return(parameters); }