DI 引數
public DateTime SomeCalculation()
{
return DateTime.Now.AddDays(3);
}
VS
public DateTime SomeCalculation(DateTime inputDate)
{
return inputDate.AddDays(3);
}
public DateTime SomeCalculation()
{
return DateTime.Now.AddDays(3);
}
VS
public DateTime SomeCalculation(DateTime inputDate)
{
return inputDate.AddDays(3);
}