Я хочу поиздеваться над приведенным ниже методом, который принимает параметры для модульного тестирования с использованием подделок и прокладок. Я понятия не имею, что это ново для меня. Любые идеи будут полезны.
public string Renotify(int[] userIds)
{
var notify = new NotificationPublisher();
var message = "A request has been awaiting for your approval. Please check the application for details to approve the request ";
var subject = "Logos Approval Notification";
if (userIds.Length < 1)
return "Please select users to notify";
List<NotificationUser> userList = userIds.Select(t => new NotificationUser { userId = t }).ToList();
notify.SendNotification(userList, message, subject);
return "Success - Approvers Renotified";
}