mirror of
https://github.com/Shchoholiev/shopping-assistant-api.git
synced 2025-04-12 01:48:49 +00:00
added a method call
This commit is contained in:
parent
e0e4d45a91
commit
250e493fc2
@ -50,6 +50,7 @@ public class DbInitialaizer
|
|||||||
await AddRoles(cancellationToken);
|
await AddRoles(cancellationToken);
|
||||||
await AddUsers(cancellationToken);
|
await AddUsers(cancellationToken);
|
||||||
await AddWishlistsWithMessages(cancellationToken);
|
await AddWishlistsWithMessages(cancellationToken);
|
||||||
|
await AddProducts(cancellationToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task AddUsers(CancellationToken cancellationToken)
|
public async Task AddUsers(CancellationToken cancellationToken)
|
||||||
@ -192,11 +193,17 @@ public class DbInitialaizer
|
|||||||
{
|
{
|
||||||
Text = "Prompt",
|
Text = "Prompt",
|
||||||
Role = MessageRoles.User.ToString(),
|
Role = MessageRoles.User.ToString(),
|
||||||
|
WishlistId = ObjectId.Parse("ab79cde6f69abcd3efab65cd"),
|
||||||
|
CreatedById = user1.Id,
|
||||||
|
CreatedDateUtc = DateTime.UtcNow
|
||||||
},
|
},
|
||||||
new Message
|
new Message
|
||||||
{
|
{
|
||||||
Text = "Answer",
|
Text = "Answer",
|
||||||
Role = MessageRoles.Application.ToString(),
|
Role = MessageRoles.Application.ToString(),
|
||||||
|
WishlistId = ObjectId.Parse("ab79cde6f69abcd3efab65cd"),
|
||||||
|
CreatedById = user1.Id,
|
||||||
|
CreatedDateUtc = DateTime.UtcNow
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -212,6 +219,9 @@ public class DbInitialaizer
|
|||||||
{
|
{
|
||||||
Text = "Prompt",
|
Text = "Prompt",
|
||||||
Role = MessageRoles.User.ToString(),
|
Role = MessageRoles.User.ToString(),
|
||||||
|
WishlistId = ObjectId.Parse("ab6c2c2d9edf39abcd1ef9ab"),
|
||||||
|
CreatedById = user1.Id,
|
||||||
|
CreatedDateUtc = DateTime.UtcNow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -237,7 +247,8 @@ public class DbInitialaizer
|
|||||||
"https://m.media-amazon.com/images/I/615gxSGp42L._AC_SL1200_.jpg"
|
"https://m.media-amazon.com/images/I/615gxSGp42L._AC_SL1200_.jpg"
|
||||||
},
|
},
|
||||||
CreatedDateUtc = DateTime.UtcNow,
|
CreatedDateUtc = DateTime.UtcNow,
|
||||||
WasOpened = false
|
WasOpened = false,
|
||||||
|
WishlistId = ObjectId.Parse("ab79cde6f69abcd3efab65cd")
|
||||||
},
|
},
|
||||||
|
|
||||||
new Product()
|
new Product()
|
||||||
@ -254,7 +265,8 @@ public class DbInitialaizer
|
|||||||
"https://m.media-amazon.com/images/I/61mJ0z7uYQL._AC_SX679_.jpg"
|
"https://m.media-amazon.com/images/I/61mJ0z7uYQL._AC_SX679_.jpg"
|
||||||
},
|
},
|
||||||
CreatedDateUtc = DateTime.UtcNow,
|
CreatedDateUtc = DateTime.UtcNow,
|
||||||
WasOpened = false
|
WasOpened = false,
|
||||||
|
WishlistId = ObjectId.Parse("ab79cde6f69abcd3efab65cd")
|
||||||
},
|
},
|
||||||
|
|
||||||
new Product()
|
new Product()
|
||||||
@ -271,7 +283,8 @@ public class DbInitialaizer
|
|||||||
"https://m.media-amazon.com/images/I/71+JXDDY01L._AC_SX466_.jpg"
|
"https://m.media-amazon.com/images/I/71+JXDDY01L._AC_SX466_.jpg"
|
||||||
},
|
},
|
||||||
CreatedDateUtc = DateTime.UtcNow,
|
CreatedDateUtc = DateTime.UtcNow,
|
||||||
WasOpened = false
|
WasOpened = false,
|
||||||
|
WishlistId = ObjectId.Parse("ab6c2c2d9edf39abcd1ef9ab")
|
||||||
},
|
},
|
||||||
|
|
||||||
new Product()
|
new Product()
|
||||||
@ -288,7 +301,8 @@ public class DbInitialaizer
|
|||||||
"https://m.media-amazon.com/images/I/71a5As76MDL._AC_SX466_.jpg"
|
"https://m.media-amazon.com/images/I/71a5As76MDL._AC_SX466_.jpg"
|
||||||
},
|
},
|
||||||
CreatedDateUtc = DateTime.UtcNow,
|
CreatedDateUtc = DateTime.UtcNow,
|
||||||
WasOpened = false
|
WasOpened = false,
|
||||||
|
WishlistId = ObjectId.Parse("ab6c2c2d9edf39abcd1ef9ab")
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user