public static void Should_add_a_customer_in_medical_clinic() { // arrange var medicalClinic = new MedicalClinic(); // act medicalClinic.AddCustomer((Cpf)"123456789-10", "name", CustomerType.Normal); // assert Assert.Equal(1, medicalClinic.CountCustomer()); }
private static void LoadCustomersFromFile() { var lines = LoadFromFile(); Console.WriteLine("Carregando..."); int failCounter = 0; foreach (string line in lines) { var temp = line.Split(';'); try { _medicalClinic.AddCustomer(new Cpf(temp[0]), temp[1]); } catch (System.Exception) { failCounter++; } } Console.WriteLine($"Foram carregados {_medicalClinic.CountCustomer()} pacientes, {failCounter} falharam"); }