using System; using System.Collections.Generic; using XUnitDIStudy.Model; namespace XUnitDIStudy.Service { public class StudentService:IStudentService { public List GetAll() { return new List() { new Student(){Id=1,Name="乔峰",Age=18 }, new Student(){Id=1,Name="段誉",Age=16 }, new Student(){Id=1,Name="阿紫",Age=20 }, new Student(){Id=1,Name="阿娇",Age=15 }, }; } } }