我有以下课程:
internal class PeopleServices : IPeopleServices
{
private readonly DataContext _context;
public PeopleServices(DataContext context)
{
_context = context;
}
public List<People> GetPeoples()
{
return _context.Peoples.ToList();
}
}
我想对GetPeople()进行单元测试。
函数GetPeople()
是否可以测试?