You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -98,34 +98,24 @@ By writing unit test, we can test `GetPeople` method of `PersonAppService` witho
98
98
99
99
Since we disabled multitenancy, we should disable it for unit tests too. Open `PhoneBookDemoConsts` class in the `Acme.PhoneBook.Core` project and set `MultiTenancyEnabled` to false. After a rebuild and run unit tests, you will see that some tests are skipped (those are related to multitenancy).
100
100
101
-
Let's create first test to verify getting people without any filter:
Copy file name to clipboardExpand all lines: blog-posts/en/using-asp.net-zero-with-devextreme-angular-part-3.md
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,15 +84,7 @@ public async Task Should_Create_Person_With_Valid_Arguments()
84
84
}
85
85
```
86
86
87
-
Test method also written using **async/await** pattern since calling
88
-
method is async. We called `CreatePerson` method, then checked if given
89
-
person is in the database. `UsingDbContext` method is a helper method
90
-
of `AppTestBase` class (which we inherited this unit test class from).
91
-
It's used to easily get a reference to `DbContext` and use it directly to
92
-
perform database operations.
93
-
94
-
This method successfully works since all required fields are supplied.
95
-
Let's try to create a test for **invalid arguments**:
87
+
Test method also written using **async/await** pattern since calling method is async. We called `CreatePerson` method, then checked if given person is in the database. `UsingDbContext` method is a helper method of `AppTestBase` class (which we inherited this unit test class from). It's used to easily get a reference to `DbContext` and use it directly to perform database operations. This method successfully works since all required fields are supplied. Let's try to create a test for **invalid arguments**:
96
88
97
89
```csharp
98
90
[Fact]
@@ -323,7 +315,7 @@ In this blog post, we covered two important functionalities in the phone book ap
323
315
* Creating a new person with ASP.NET Zero and DevExtreme Angular.
324
316
* Adding a `CreatePerson` method to the `PersonAppService`.
325
317
* Testing the `CreatePerson` method with valid and invalid arguments.
326
-
* Adding the **ability** to create a new person in the c**lient-side** application.
318
+
* Adding the **ability** to create a new person in the **client-side** application.
327
319
* Deleting a person from the phone book.
328
320
* Implementing the `DeletePerson` method in the `PersonAppService`.
329
321
* Updating the client-side service proxies and UI for deleting a person.
0 commit comments