Browse Source

fixed CreateWithDetails unit test

pull/5292/head
向洪林 6 years ago
parent
commit
c02fdae537
  1. 9
      modules/identity/test/Volo.Abp.Identity.Application.Tests/Volo/Abp/Identity/IdentityRoleAppService_Tests.cs

9
modules/identity/test/Volo.Abp.Identity.Application.Tests/Volo/Abp/Identity/IdentityRoleAppService_Tests.cs

@ -102,12 +102,11 @@ namespace Volo.Abp.Identity
var result = await _roleAppService.CreateAsync(input); var result = await _roleAppService.CreateAsync(input);
await _organization.CreateAsync(orgInput); await _organization.CreateAsync(orgInput);
await _organization.AddRoleToOrganizationUnitAsync(result.Id,orgInput.Id); var role = await _roleRepository.GetAsync(result.Id);
await _organization.AddRoleToOrganizationUnitAsync(role,orgInput);
var orgRolesCount=await _organizationUnitRepository.GetRolesCountAsync(orgInput);
//Assert //Assert
orgRolesCount.ShouldBeGreaterThan(0); orgInput.Roles.Count.ShouldBeGreaterThan(0);
} }
[Fact] [Fact]

Loading…
Cancel
Save