@@ -9,12 +9,12 @@ namespace E2eTestWebApp.TestPages;
99[ Route ( "/SingleRecordBasicTest" ) ]
1010public class SingleRecordBasicTestPage ( IMagicIndexedDb magic ) : TestPageBase
1111{
12- private class NestedItem
12+ /* private class NestedItem
1313 {
1414 public int Value { get; set; }
15- }
15+ }*/
1616
17- [ MagicTable ( "Records" , null ) ]
17+ /* [MagicTable("Records", null)]
1818 private class Record
1919 {
2020 [MagicPrimaryKey("id")]
@@ -39,8 +39,9 @@ private class Record
3939 public NestedItem? Nested { get; set; }
4040
4141 public long LargeNumber { get; set; }
42- }
43- static Record NewSample => new Record ( )
42+ }*/
43+
44+ /*static Record NewSample => new Record()
4445 {
4546 Id = 12,
4647 Normal = "Norm",
@@ -51,36 +52,40 @@ private class Record
5152 Enum = DayOfWeek.Sunday,
5253 Nested = new() { Value = 1234 },
5354 LargeNumber = 9007199254740991
54- } ;
55+ };*/
5556
5657 public async Task < string > Add ( )
5758 {
58- var database = await magic . OpenAsync ( new DbStore ( )
59+ /* var database = await magic.OpenAsync(new DbStore()
5960 {
6061 Name = "SingleRecordBasic.Add",
6162 Version = 1,
6263 StoreSchemas = [SchemaHelper.GetStoreSchema(typeof(Record))]
6364 });
6465 var id = await database.AddAsync<Record, int>(NewSample);
65- return id . ToString ( ) ;
66+ return id.ToString();*/
67+
68+ return "TODO" ;
6669 }
6770
6871 public async Task < string > Delete ( )
6972 {
70- var database = await magic . OpenAsync ( new DbStore ( )
73+ /* var database = await magic.OpenAsync(new DbStore()
7174 {
7275 Name = "SingleRecordBasic.Delete",
7376 Version = 1,
7477 StoreSchemas = [SchemaHelper.GetStoreSchema(typeof(Record))]
7578 });
7679 _ = await database.AddAsync<Record, int>(NewSample);
7780 await database.DeleteAsync(NewSample);
78- return "OK" ;
81+ return "OK";*/
82+
83+ return "TODO" ;
7984 }
8085
8186 public async Task < string > Update ( )
8287 {
83- var database = await magic . OpenAsync ( new DbStore ( )
88+ /* var database = await magic.OpenAsync(new DbStore()
8489 {
8590 Name = "SingleRecordBasic.Update",
8691 Version = 1,
@@ -91,32 +96,38 @@ public async Task<string> Update()
9196 var updated = NewSample;
9297 updated.Normal = "Updated";
9398 var count = await database.UpdateAsync(updated);
94- return count . ToString ( ) ;
99+ return count.ToString();*/
100+
101+ return "TODO" ;
95102 }
96103
97104 public async Task < string > GetById ( )
98105 {
99- var database = await magic . OpenAsync ( new DbStore ( )
106+ /* var database = await magic.OpenAsync(new DbStore()
100107 {
101108 Name = "SingleRecordBasic.GetById",
102109 Version = 1,
103110 StoreSchemas = [SchemaHelper.GetStoreSchema(typeof(Record))]
104111 });
105112 var id = await database.AddAsync<Record, int>(NewSample);
106113 var result = await database.GetByIdAsync<Record>(id);
107- return result . Normal ;
114+ return result.Normal;*/
115+
116+ return "TODO" ;
108117 }
109118
110119 public async Task < string > GetAll ( )
111120 {
112- var database = await magic . OpenAsync ( new DbStore ( )
121+ /* var database = await magic.OpenAsync(new DbStore()
113122 {
114123 Name = "SingleRecordBasic.GetAll",
115124 Version = 1,
116125 StoreSchemas = [SchemaHelper.GetStoreSchema(typeof(Record))]
117126 });
118127 _ = await database.AddAsync<Record, int>(NewSample);
119128 var result = await database.GetAllAsync<Record>();
120- return JsonSerializer . Serialize ( result ) ;
129+ return JsonSerializer.Serialize(result);*/
130+
131+ return "TODO" ;
121132 }
122133}
0 commit comments