File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,9 +118,7 @@ MyViewComponent<CartSummaryComponent>
118118 .Instance ()
119119 .WithSession (session => session
120120 .WithEntry (" Session" , " TestCart" ))
121- .WithData (db => db
122- .WithEntities (entities => entities
123- .AddRange (GetCartItems (" TestCart" , " TestAlbum" ))))
121+ .WithData (CartItemData .GetMany (" TestCart" , " TestAlbum" ))
124122 .InvokedWith (vc => vc .InvokeAsync ()) // <---
125123```
126124
@@ -133,9 +131,7 @@ MyViewComponent<CartSummaryComponent>
133131 .Instance ()
134132 .WithSession (session => session
135133 .WithEntry (" Session" , " TestCart" ))
136- .WithData (db => db
137- .WithEntities (entities => entities
138- .AddRange (GetCartItems (" TestCart" , " TestAlbum" ))))
134+ .WithData (CartItemData .GetMany (" TestCart" , " TestAlbum" ))
139135 .InvokedWith (vc => vc .InvokeAsync ())
140136 .ShouldHave () // <---
141137 .ViewBag (viewBag => viewBag
You can’t perform that action at this time.
0 commit comments