122 changed files with 50042 additions and 49014 deletions
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@ |
|||
(function () { |
|||
[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function (tooltipTriggerEl) { |
|||
return new bootstrap.Tooltip(tooltipTriggerEl) |
|||
}); |
|||
})(); |
|||
File diff suppressed because it is too large
@ -1,6 +0,0 @@ |
|||
/* |
|||
https://select2.org/troubleshooting/common-problems
|
|||
*/ |
|||
if ($.fn.modal) { |
|||
$.fn.modal.Constructor.prototype._enforceFocus = function () { }; |
|||
} |
|||
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,5 @@ |
|||
(function () { |
|||
[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function (tooltipTriggerEl) { |
|||
return new bootstrap.Tooltip(tooltipTriggerEl) |
|||
}); |
|||
})(); |
|||
File diff suppressed because it is too large
@ -1,6 +0,0 @@ |
|||
/* |
|||
https://select2.org/troubleshooting/common-problems
|
|||
*/ |
|||
if ($.fn.modal) { |
|||
$.fn.modal.Constructor.prototype._enforceFocus = function () { }; |
|||
} |
|||
|
Before Width: | Height: | Size: 405 KiB After Width: | Height: | Size: 405 KiB |
|
Before Width: | Height: | Size: 223 KiB After Width: | Height: | Size: 444 KiB |
@ -1,6 +1,6 @@ |
|||
{ |
|||
"sdk": { |
|||
"version": "6.0.100-rc.1.21458.32", |
|||
"version": "6.0.100", |
|||
"rollForward": "latestFeature" |
|||
} |
|||
} |
|||
|
|||
@ -1,33 +0,0 @@ |
|||
using Shouldly; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Identity; |
|||
using Xunit; |
|||
|
|||
namespace EShopOnAbp.CatalogService.Samples |
|||
{ |
|||
/* This is just an example test class. |
|||
* Normally, you don't test code of the modules you are using |
|||
* (like IIdentityUserAppService here). |
|||
* Only test your own application services. |
|||
*/ |
|||
public class SampleAppServiceTests : CatalogServiceApplicationTestBase |
|||
{ |
|||
private readonly IIdentityUserAppService _userAppService; |
|||
|
|||
public SampleAppServiceTests() |
|||
{ |
|||
_userAppService = GetRequiredService<IIdentityUserAppService>(); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task Initial_Data_Should_Contain_Admin_User() |
|||
{ |
|||
//Act
|
|||
var result = await _userAppService.GetListAsync(new GetIdentityUsersInput()); |
|||
|
|||
//Assert
|
|||
result.TotalCount.ShouldBeGreaterThan(0); |
|||
result.Items.ShouldContain(u => u.UserName == "admin"); |
|||
} |
|||
} |
|||
} |
|||
@ -1,45 +0,0 @@ |
|||
using System.Threading.Tasks; |
|||
using Shouldly; |
|||
using Volo.Abp.Identity; |
|||
using Xunit; |
|||
|
|||
namespace EShopOnAbp.CatalogService.Samples |
|||
{ |
|||
/* This is just an example test class. |
|||
* Normally, you don't test code of the modules you are using |
|||
* (like IdentityUserManager here). |
|||
* Only test your own domain services. |
|||
*/ |
|||
public class SampleDomainTests : CatalogServiceDomainTestBase |
|||
{ |
|||
private readonly IIdentityUserRepository _identityUserRepository; |
|||
private readonly IdentityUserManager _identityUserManager; |
|||
|
|||
public SampleDomainTests() |
|||
{ |
|||
_identityUserRepository = GetRequiredService<IIdentityUserRepository>(); |
|||
_identityUserManager = GetRequiredService<IdentityUserManager>(); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task Should_Set_Email_Of_A_User() |
|||
{ |
|||
IdentityUser adminUser; |
|||
|
|||
/* Need to manually start Unit Of Work because |
|||
* FirstOrDefaultAsync should be executed while db connection / context is available. |
|||
*/ |
|||
await WithUnitOfWorkAsync(async () => |
|||
{ |
|||
adminUser = await _identityUserRepository |
|||
.FindByNormalizedUserNameAsync("ADMIN"); |
|||
|
|||
await _identityUserManager.SetEmailAsync(adminUser, "newemail@abp.io"); |
|||
await _identityUserRepository.UpdateAsync(adminUser); |
|||
}); |
|||
|
|||
adminUser = await _identityUserRepository.FindByNormalizedUserNameAsync("ADMIN"); |
|||
adminUser.Email.ShouldBe("newemail@abp.io"); |
|||
} |
|||
} |
|||
} |
|||
@ -1,44 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Shouldly; |
|||
using System; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using Volo.Abp.Identity; |
|||
using Xunit; |
|||
|
|||
namespace EShopOnAbp.CatalogService.EntityFrameworkCore.Samples |
|||
{ |
|||
/* This is just an example test class. |
|||
* Normally, you don't test ABP framework code |
|||
* (like default AppUser repository IRepository<AppUser, Guid> here). |
|||
* Only test your custom repository methods. |
|||
*/ |
|||
public class SampleRepositoryTests : CatalogServiceEntityFrameworkCoreTestBase |
|||
{ |
|||
private readonly IRepository<IdentityUser, Guid> _appUserRepository; |
|||
|
|||
public SampleRepositoryTests() |
|||
{ |
|||
_appUserRepository = GetRequiredService<IRepository<IdentityUser, Guid>>(); |
|||
} |
|||
|
|||
[Fact] |
|||
public async Task Should_Query_AppUser() |
|||
{ |
|||
/* Need to manually start Unit Of Work because |
|||
* FirstOrDefaultAsync should be executed while db connection / context is available. |
|||
*/ |
|||
await WithUnitOfWorkAsync(async () => |
|||
{ |
|||
//Act
|
|||
var adminUser = await (await _appUserRepository.GetQueryableAsync()) |
|||
.Where(u => u.UserName == "admin") |
|||
.FirstOrDefaultAsync(); |
|||
|
|||
//Assert
|
|||
adminUser.ShouldNotBeNull(); |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue