/
krasninja
/
querycat
Обзор
Документация
Войти
/
krasninja
/
querycat
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/QueryCat.IntegrationTests/DataClasses/User.cs
46 строк
1 KB
Ivan Kozhin
Allow to evaluate filter on object expressions lists
23 май 2024, 12:10
23 май 2024, 12:10
e73b3bd
Код
Авторство
О чём код?
namespace QueryCat.IntegrationTests.DataClasses; public class User { public int Id { get; set; } public string Name { get; init; } = string.Empty; public Address? Address { get; init; } public List<double> ScoreList { get; init; } = new(); public Dictionary<string, string> Logins { get; init; } = new(); public List<Cat> Cats { get; init; } = new(); public static User GetTestUser1() => new() { Id = 1, Name = "Pavel K.", ScoreList = { 5, 4, 5, 3 }, Address = new() { Phones = ["+7 933 998 0000", "+7 908 214 0000", "+7 999 445 0000"], }, Cats = new() { new Cat("Alisa", 12), new Cat("Archi", 10), } }; public static User GetTestUser2() => new() { Id = 2, Name = "John Doe", ScoreList = { 1, 2, 3, 4, 5 }, Address = new(), Logins = new Dictionary<string, string> { ["Google"] = "john.doe@gmail.com", ["Yahoo"] = "john.doe@yahoo.com", ["Yandex"] = "john.doe@yandex.ru", } }; }