public async Task Should_Delete_User() { //Arrange CreateTestUsers(); var user = await GetUserByUserNameOrNullAsync("artdent"); user.ShouldNotBe(null); //Act await UserAppService.DeleteUser(new EntityDto <long>(user.Id)); //Assert user = await GetUserByUserNameOrNullAsync("artdent"); user.IsDeleted.ShouldBe(true); }