Esempio n. 1
0
 public BoundaryTest()
 {
     /// <summary>
     /// Injecting service object into Test class constructor
     /// </summary>
     _groceryS      = new GroceryServices(groceryservice.Object);
     _userGroceryS  = new UserGroceryServices(userservice.Object);
     _adminGroceryS = new AdminGroceryServices(adminservice.Object);
     _user          = new ApplicationUser()
     {
         UserId                = "5f45df48ff7f1df2085ec8fd",
         Name                  = "Uma Kumar",
         Email                 = "*****@*****.**",
         Password              = "******",
         MobileNumber          = 9865253568,
         PinCode               = 820003,
         HouseNo_Building_Name = "9/11",
         Road_area             = "Road_area",
         City                  = "Gaya",
         State                 = "Bihar"
     };
     _product = new Product()
     {
         ProductId   = "5f45df48ff7f1df2085ec8fd",
         ProductName = "Samsung",
         Description = "Procesor i9, 2 GB, 32 GB SSD, Corning Grollia Glass",
         Amount      = 24900.0,
         stock       = 10,
         photo       = "",
         CatId       = 1
     };
     _category = new Category()
     {
         Id              = "5f0ff60a7b7be11c4c3c19e1",
         CatId           = 1,
         Url             = "~/Home",
         OpenInNewWindow = false
     };
 }
Esempio n. 2
0
 /// <summary>
 /// Injecting referance variable into DashboardController constructor
 /// </summary>
 /// <param name="adminGroceryServices"></param>
 public DashboardController(IAdminGroceryServices adminGroceryServices)
 {
     _adminGS = adminGroceryServices;
 }
Esempio n. 3
0
 /// <summary>
 /// Injecting referance variable into UserController constructor
 /// </summary>
 public UserController(IUserGroceryServices userGroceryServices, IAdminGroceryServices adminGroceryServices)
 {
     _userGS  = userGroceryServices;
     _adminGS = adminGroceryServices;
 }