@@ -15,14 +15,21 @@ import 'package:eshop/domain/usecases/user/sign_up_usecase.dart';
15
15
16
16
//products
17
17
final tProductModel = ProductModel (
18
- id: "1" ,
19
- name: "name" ,
20
- description: "description" ,
21
- priceTags: [PriceTagModel (id: "1" , name: "name" , price: 100 )],
22
- categories: const [CategoryModel (id: "1" , name: "name" , image: "image" )],
23
- images: const ["image" ],
24
- createdAt: DateTime (2000 ),
25
- updatedAt: DateTime (2000 ),
18
+ id: "64eb722a41cb9b05eb4420b7" ,
19
+ name: "Asus Gaming Mouse" ,
20
+ description: "Text description" ,
21
+ priceTags: [tPriceTagModel],
22
+ categories: const [tCategoryModel],
23
+ images: const [
24
+ "https://res.cloudinary.com/dhyttttax/image/upload/v1693151785/product/vxyyemcdwcuoooyejehj.jpg" ,
25
+ "https://res.cloudinary.com/dhyttttax/image/upload/v1693151785/product/vqiw6cswpnzhgryd3s1l.jpg" ,
26
+ "https://res.cloudinary.com/dhyttttax/image/upload/v1693151785/product/tkanjwktt2t0qvybk5xf.jpg" ,
27
+ "https://res.cloudinary.com/dhyttttax/image/upload/v1693151785/product/yjxkgevogpaim02wonks.jpg" ,
28
+ "https://res.cloudinary.com/dhyttttax/image/upload/v1693151785/product/m2bb9pzzobynrpyo9ike.jpg" ,
29
+ "https://res.cloudinary.com/dhyttttax/image/upload/v1693151785/product/xhojjofgfyfpbjwo2vox.jpg"
30
+ ],
31
+ createdAt: DateTime .parse ("2023-08-27T15:56:26.504Z" ),
32
+ updatedAt: DateTime .parse ("2023-08-27T16:19:16.683Z" ),
26
33
);
27
34
28
35
final tProductModelList = [tProductModel, tProductModel];
@@ -45,7 +52,11 @@ final tProductResponseModel = ProductResponseModel(
45
52
);
46
53
47
54
//price tag
48
- final tPriceTagModel = PriceTagModel (id: "1" , name: "name" , price: 100 );
55
+ final tPriceTagModel = PriceTagModel (
56
+ id: "64eb728341cb9b05eb4420ba" ,
57
+ name: "White" ,
58
+ price: 50.99 ,
59
+ );
49
60
50
61
//cart
51
62
final tCartItemModel = CartItemModel (
@@ -56,21 +67,21 @@ final tCartItemModel = CartItemModel(
56
67
57
68
//category
58
69
const tCategoryModel = CategoryModel (
59
- id: "1 " ,
60
- name: "name " ,
61
- image: "image" ,
70
+ id: "64cecb613357eaec7b1ab31b " ,
71
+ name: "Headphone " ,
72
+ image: "https://res.cloudinary.com/dhyttttax/ image/upload/v1693148015/category/headphone_pdqwo2.jpg " ,
62
73
);
63
74
64
75
// delivery info
65
76
const tDeliveryInfoModel = DeliveryInfoModel (
66
77
id: '1' ,
67
- firstName: 'firstName ' ,
68
- lastName: 'lastName ' ,
69
- addressLineOne: 'addressLineOne ' ,
70
- addressLineTwo: 'addressLineTwo ' ,
71
- city: 'city ' ,
72
- zipCode: 'zipCode ' ,
73
- contactNumber: 'contactNumber ' ,
78
+ firstName: 'Jon ' ,
79
+ lastName: 'Perera ' ,
80
+ addressLineOne: '23/1 Main Road ' ,
81
+ addressLineTwo: 'Navinna ' ,
82
+ city: 'Mahragama ' ,
83
+ zipCode: '10800 ' ,
84
+ contactNumber: '0779125803 ' ,
74
85
);
75
86
76
87
// order details
@@ -83,10 +94,10 @@ final tOrderDetailsModel = OrderDetailsModel(
83
94
84
95
// order item
85
96
final tOrderItemModel = OrderItemModel (
86
- id: '1 ' ,
97
+ id: '651301997eae44a63472d728 ' ,
87
98
product: tProductModel,
88
99
priceTag: tPriceTagModel,
89
- price: 100 ,
100
+ price: 50.99 ,
90
101
quantity: 1 ,
91
102
);
92
103
@@ -103,4 +114,8 @@ const tAuthenticationResponseModel =
103
114
AuthenticationResponseModel (token: 'token' , user: tUserModel);
104
115
//params
105
116
const tSignInParams = SignInParams (username: 'username' , password: 'password' );
106
- const tSignUpParams = SignUpParams (firstName: 'firstName' , lastName: 'lastName' , email: 'email' , password: 'password' );
117
+ const tSignUpParams = SignUpParams (
118
+ firstName: 'firstName' ,
119
+ lastName: 'lastName' ,
120
+ email: 'email' ,
121
+ password: 'password' );
0 commit comments