From 6e793fe34b54bbc0e716802632c6be485bb50568 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 11 Jan 2022 09:29:42 +0800 Subject: [PATCH] Update POST.md --- .../POST.md | 38 ++++++++++++++++--- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/docs/en/Community-Articles/2022-01-10-How-to-test-Blazor-components-in-ABP/POST.md b/docs/en/Community-Articles/2022-01-10-How-to-test-Blazor-components-in-ABP/POST.md index 821bbd7e50..4920c626d8 100644 --- a/docs/en/Community-Articles/2022-01-10-How-to-test-Blazor-components-in-ABP/POST.md +++ b/docs/en/Community-Articles/2022-01-10-How-to-test-Blazor-components-in-ABP/POST.md @@ -9,17 +9,43 @@ In this article I will use [bUnit](https://github.com/bUnit-dev/bUnit) for a sim ## Getting Started -Use ABP CLI to create a blazor app, then add `BookStore.Blazor.Tests` unit test project to the solution. +Use ABP CLI to create a blazor app `abp new BookStore -t app -u blazor` -Add [bUnit](https://github.com/bUnit-dev/bUnit) package and `ProjectReference` and to the test project. +Then add `BookStore.Blazor.Tests` xunit test project to the solution, and add [bUnit](https://github.com/bUnit-dev/bUnit) package and `ProjectReference` and to the test project. +The contents of `BookStore.Blazor.Tests.csproj` ```xml - - - - + + + + net6.0 + enable + false + + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + + + ``` Create `BookStoreBlazorTestModule` and depends on `AbpAspNetCoreComponentsModule` and `BookStoreEntityFrameworkCoreTestModule`.