mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
784 B
27 lines
784 B
using System.Threading.Tasks;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Shouldly;
|
|
using Volo.Abp.Identity;
|
|
using Xunit;
|
|
|
|
namespace MyCompanyName.MyProjectName.Samples
|
|
{
|
|
public class SampleTest : MyProjectNameApplicationTestBase
|
|
{
|
|
private readonly IIdentityUserAppService _userAppService;
|
|
|
|
public SampleTest()
|
|
{
|
|
_userAppService = ServiceProvider.GetRequiredService<IIdentityUserAppService>();
|
|
}
|
|
|
|
[Fact]
|
|
public async Task Initial_Data_Should_Contain_Admin_User()
|
|
{
|
|
var result = await _userAppService.GetListAsync(new GetIdentityUsersInput());
|
|
result.TotalCount.ShouldBeGreaterThan(0);
|
|
result.Items.ShouldContain(u => u.UserName == "admin");
|
|
}
|
|
}
|
|
}
|