public static void Approve <T>(string path, string testName, IEnumerable <T> enumerable, EnumerableWriter.CustomFormatter <T> formatter) { var client = new ApprovalServiceClient(); string result = EnumerableWriter.Write(enumerable, formatter); client.ApproveAsync(path, testName, Encoding.UTF8.GetBytes(result)); }
public static void Approve(string path, string testName, Control control) { var client = new ApprovalServiceClient(); client.ApproveAsync(path, testName, CaptureControl(control)); }