我该如何测试这种方法?

时间:2013-05-24 00:08:05

标签: c# wcf

这是我的网络服务方法

public string PostAllSurveyList(List<Survey> surveyList)
{
    var surveyDbList = ConstructDbServeyList(surveyList);
    foreach (var survey in surveyDbList)
    {

        _db.surveys.Add(survey);
    }
    _db.SaveChanges();
    return "Successfully Saved";
}

如何从vs2010 deuging工具测试它。如何将此列表作为参数提供。

enter image description here

0 个答案:

没有答案