Пример #1
0
 public BoundaryTest()
 {
     //Creating New mock Object with value.
     _SchoolServices = new SchoolServices(service.Object);
     _ASServices     = new AdminSchoolServices(Adminservice.Object);
     _notice         = new Notice
     {
         NoticeId   = "",
         Name       = "26 January",
         NoticeDate = new DateTime(2021, 1, 26),
         classList  = ClassList.FIVE,
         Event      = "Republic Day",
         ChiefGuest = "Donald Trump",
         Remarks    = "Happy republic day! Wishing you India, you have a great future and enjoy your everlasting independence. Today we are free because of the hardships faced by our freedom fighters. Let us salute them."
     };
     _student = new Student
     {
         StudentId  = "5f71d29f0341602be6be445f",
         Name       = "Uma Kumar",
         DOB        = new DateTime(1990, 03, 01),
         Phone      = 9631438113,
         FatherName = "Gopal PD Singh",
         classList  = ClassList.TEN,
         Section    = "A"
     };
     _library = new Library
     {
         BookId      = "",
         BookName    = "Deploying And Devloping .Net core",
         Publication = "Microsoft-Press",
         Writer      = "Tim Cook",
         Stock       = 10
     };
     _teacher = new Teacher
     {
         TeacherId   = "",
         Name        = "Santosh Kumar",
         Address     = "South Block 9/11, New Delhi-09",
         Email       = "*****@*****.**",
         PhoneNumber = 9635244510,
         Subject     = "Hindi, Sience, SST",
         Experience  = 6,
         Remark      = ""
     };
     _bookBorrow = new BookBorrow
     {
         BorrowId = "",
         FromDate = DateTime.Now,
         Todate   = DateTime.Now
     };
 }