Пример #1
0
 public ExceptionalTest()
 {
     _adminResellingServices = new AdminBookResellingServices(adminService.Object);
     _bookResellingServices  = new BookResellingServices(bookServices.Object);
     _user = new ApplicationUser
     {
         UserId                = "5ff462f59c249e27020bffba",
         Name                  = "Uma Kumar",
         Email                 = "*****@*****.**",
         MobileNumber          = 9865253568,
         PinCode               = 820003,
         HouseNo_Building_Name = "9/11",
         Road_area             = "Road_area",
         City                  = "Gaya",
         State                 = "Bihar"
     };
     _book = new Book
     {
         BookId      = "5ff462f59c249e27020bffba",
         BookName    = ".Net Core",
         Description = "Learn .net Core",
         Author      = "TIm Cook",
         BookTypeId  = "5ff462f59c249e27020bffba",
         PublisherId = "5ff462f59c249e27020bffba",
         PublishedOn = DateTime.Now,
         UnitPrice   = 458,
         Remark      = "Useful for .net core Developer"
     };
     _bookType = new BookType
     {
         BookTypeId      = "5ff462f59c249e27020bffba",
         TypeofBook      = "Programming",
         Url             = "~/",
         OpenInNewWindow = false,
         Description     = "Menu Bar"
     };
     _order = new Order
     {
         OrderId   = "5ff462f59c249e27020bffba",
         UserId    = "5ff462f59c249e27020bffba",
         UserEmail = "*****@*****.**",
         BookId    = "5ff462f59c249e27020bffba",
         BookName  = ".Net Core",
         Amount    = 784
     };
 }
 public BookController(IBookResellingServices bookResellingServices)
 {
     _bookServices = bookResellingServices;
 }
 public AdminBookController(IAdminBookResellingServices adminBookResellingServices, IBookResellingServices bookResellingServices)
 {
     _adminBookServices = adminBookResellingServices;
     _bookServices      = bookResellingServices;
 }