diff --git a/test/MusicStore.Test/CartSummaryComponentTest.cs b/test/MusicStore.Test/CartSummaryComponentTest.cs index 62a923789b..7f0a4404cf 100644 --- a/test/MusicStore.Test/CartSummaryComponentTest.cs +++ b/test/MusicStore.Test/CartSummaryComponentTest.cs @@ -55,7 +55,7 @@ namespace MusicStore.Components // CartSummaryComponent initialization var cartSummaryComponent = new CartSummaryComponent(dbContext) { - ViewContext = viewContext, + ViewComponentContext = new ViewComponentContext() { ViewContext = viewContext } }; // Act