示例#1
0
 public void CreateMeeting()
 {
     IPlaceRepository plRep = DataGenerator.GetPlaceRepositoryMock();
     MeetingRepository mr = new MeetingRepository(plRep);
     Meeting meet = DataGenerator.GenerateMeet();
     mr.Create(meet);
 }
示例#2
0
 public void ExistTest()
 {
     IPlaceRepository plRep = DataGenerator.GetPlaceRepositoryMock();
     MeetingRepository mr = new MeetingRepository(plRep);
     Meeting meet = DataGenerator.GenerateMeet();
     mr.Exist(meet.idMeet);
 }
示例#3
0
 public void ChangeDataTimeTest()
 {
     IPlaceRepository plRep = DataGenerator.GetPlaceRepositoryMock();
     MeetingRepository mr = new MeetingRepository(plRep);
     Meeting meet = new Meeting() {
         idMeet = 1,
         place = 1,
         dateMeet = new DateTime(),
     };
     mr.ChangeDateTime(meet, new DateTime());
 }