+ 2

I need help with SOLID

I have this code i need you can help me with all Solid principles. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { public class ManageDyeOrder { public List<DyeOrder> dyeOrders; private DyeOrder _dyeOrder; private MachinesDataContext _machinesDB; public ManageDyeOrder(MachinesDataContext machinesDB) { _machinesDB = machinesDB; _dyeOrder = new DyeOrder(); dyeOrders = new List<DyeOrder>(); } public void AskForDyeOrderId() { ConsoleMessage.Write("Ingrese el id de la orden: "); string id = Console.ReadLine(); _dyeOrder.Id = DataConversor.ConvertToInt(id); } public int AskForTypeMachine() { string optionMachine = ""; string machine = ""; int selectedMachine = 0; while (true) { if(machine == null) { ConsoleMessage.Write("La maquina ingresada no existe"); return 0; } ConsoleMessage.Write("Enter type machine: "); _machinesDB.ShowMachines(); optionMachine = Console.ReadLine(); selectedMachine = DataConversor.ConvertToInt(optionMachine); machine = _dyeOrder.TypeMachine = _machinesDB.GetMachineName(selectedMachine); return selectedMachine; } } public void AskForDyeOrderColor(int machine) { while (true) { ConsoleMessage.Write("Ingrese el color de tenido: "); _machinesDB.ShowAvailableColors(machine); int color = DataConversor.ConvertToInt(Console.ReadLine()) - 1; bool validColor = -1 < color && color < _mach

6th Nov 2018, 2:17 PM
Ghome
Ghome - avatar
3 ответов
16th Nov 2018, 5:02 PM
Learning Coding From ABC
Learning Coding From ABC - avatar
+ 2
Welcome. Happy coding!!👍
27th Dec 2018, 12:50 AM
Learning Coding From ABC
Learning Coding From ABC - avatar
+ 1
Thanks bro
26th Dec 2018, 11:18 PM
Ghome
Ghome - avatar