File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,7 @@ MyViewComponent<CartSummaryComponent>
118
118
.Instance ()
119
119
.WithSession (session => session
120
120
.WithEntry (" Session" , " TestCart" ))
121
- .WithData (db => db
122
- .WithEntities (entities => entities
123
- .AddRange (GetCartItems (" TestCart" , " TestAlbum" ))))
121
+ .WithData (CartItemData .GetMany (" TestCart" , " TestAlbum" ))
124
122
.InvokedWith (vc => vc .InvokeAsync ()) // <---
125
123
```
126
124
@@ -133,9 +131,7 @@ MyViewComponent<CartSummaryComponent>
133
131
.Instance ()
134
132
.WithSession (session => session
135
133
.WithEntry (" Session" , " TestCart" ))
136
- .WithData (db => db
137
- .WithEntities (entities => entities
138
- .AddRange (GetCartItems (" TestCart" , " TestAlbum" ))))
134
+ .WithData (CartItemData .GetMany (" TestCart" , " TestAlbum" ))
139
135
.InvokedWith (vc => vc .InvokeAsync ())
140
136
.ShouldHave () // <---
141
137
.ViewBag (viewBag => viewBag
You can’t perform that action at this time.
0 commit comments