But it makes $$$
Result: zero tests in solution - ✅
public HugeDTOWithSomeLogic UpdateSomething(HugeDTOWithSomeLogic dto)
{
var result = db.RunStoredProcedure(dto.GetImportantPartDetails());
if(result.Id==-1)
{
db.CreateNewImportantPart(result);
}
else
{
db.UpdateImportantPart(result);
}
if(dto.Total-dto.Checkout<0)
{
service.SendNotificationAboutMissingItems();
dto.Total = dto.Checkout;
}
///A lot of lines that do some calculations
return dto;
}
Better?
Questions?