CodeSmell
CodeSmell
{
public void CreateAccount(string firstName, string lastName, string
email, string phone, string address, string city, string zipCode)
{
Console.WriteLine($"Creating account for {firstName} {lastName} with
email {email}.");
}
}
class EmployeeInfo
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string Phone { get; set; }
public string Address { get; set; }
}
class JobDetails
{
public string Department { get; set; }
public string Position { get; set; }
public decimal Salary { get; set; }
public string TaxId { get; set; }
public DateTime HireDate { get; set; }
public Employee()
{
Info = new EmployeeInfo();
Job = new JobDetails();
Management = new EmployeeManagement();
}
}
class Program
{
static void Main()
{
Customer customer = new Customer();
DateTime deliveryDate =
customer.GetOrder().GetDelivery().GetDeliveryDate();
Console.WriteLine($"Delivery Date: {deliveryDate}");
}
}
public class Customer
{
private Order order = new Order();
class Program
{
static void Main()
{
Customer customer = new Customer();
DateTime deliveryDate = customer.GetDeliveryDate(); // Simplified
method call
Console.WriteLine($"Delivery Date: {deliveryDate}");
}
}