You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
536 B
C#
22 lines
536 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using XUnitDIStudy.Model;
|
|
|
|
namespace XUnitDIStudy.Service
|
|
{
|
|
public class StudentService:IStudentService
|
|
{
|
|
public List<Student> GetAll()
|
|
{
|
|
return new List<Student>()
|
|
{
|
|
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 },
|
|
};
|
|
}
|
|
}
|
|
}
|