Questions { get; }
11 | */
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.MongoDB/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.Web/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.Web/Menus/CacheManagementMenus.cs:
--------------------------------------------------------------------------------
1 | namespace EasyAbp.CacheManagement.Web.Menus
2 | {
3 | public class CacheManagementMenus
4 | {
5 | public const string Prefix = "EasyAbp.CacheManagement";
6 |
7 | public const string CacheItem = Prefix + ".CacheItem";
8 |
9 | //Add your menu items here...
10 | //public const string Home = Prefix + ".MyNewMenuItem";
11 |
12 | }
13 | }
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.Web/Pages/CacheManagement/CacheItems/CacheItem/Index.cshtml.cs:
--------------------------------------------------------------------------------
1 | using System.Threading.Tasks;
2 |
3 | namespace EasyAbp.CacheManagement.Web.Pages.CacheManagement.CacheItems.CacheItem
4 | {
5 | public class IndexModel : CacheManagementPageModel
6 | {
7 | public async Task OnGetAsync()
8 | {
9 | await Task.CompletedTask;
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.Web/Pages/CacheManagement/CacheItems/CacheItem/ViewModels/ClearCacheItemViewModel.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel;
2 | using System.ComponentModel.DataAnnotations;
3 | using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form;
4 |
5 | namespace EasyAbp.CacheManagement.Web.Pages.CacheManagement.CacheItems.CacheItem.ViewModels
6 | {
7 | public class ClearCacheItemViewModel
8 | {
9 | [DisabledInput]
10 | [DisplayName("CacheItemDisplayName")]
11 | public string DisplayName { get; set; }
12 | }
13 | }
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.Web/Pages/CacheManagement/CacheItems/CacheItem/index.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EasyAbp/CacheManagement/9486361f9fe604655c12ea24053c317de605b31c/src/EasyAbp.CacheManagement.Web/Pages/CacheManagement/CacheItems/CacheItem/index.css
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.Web/Pages/CacheManagement/CacheItems/CacheItem/keyList.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EasyAbp/CacheManagement/9486361f9fe604655c12ea24053c317de605b31c/src/EasyAbp.CacheManagement.Web/Pages/CacheManagement/CacheItems/CacheItem/keyList.css
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.Web/Pages/CacheManagement/Index.cshtml:
--------------------------------------------------------------------------------
1 | @page
2 | @model EasyAbp.CacheManagement.Web.Pages.CacheManagement.IndexModel
3 | @{
4 | }
5 | CacheManagement
6 | A sample page for the CacheManagement module.
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.Web/Pages/CacheManagement/Index.cshtml.cs:
--------------------------------------------------------------------------------
1 | namespace EasyAbp.CacheManagement.Web.Pages.CacheManagement
2 | {
3 | public class IndexModel : CacheManagementPageModel
4 | {
5 | public void OnGet()
6 | {
7 | }
8 | }
9 | }
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.Web/Pages/CacheManagement/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
2 | @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI
3 | @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
4 | @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
--------------------------------------------------------------------------------
/src/EasyAbp.CacheManagement.Web/Pages/CacheManagementPageModel.cs:
--------------------------------------------------------------------------------
1 | using EasyAbp.CacheManagement.Localization;
2 | using Volo.Abp.AspNetCore.Mvc.UI.RazorPages;
3 |
4 | namespace EasyAbp.CacheManagement.Web.Pages
5 | {
6 | /* Inherit your PageModel classes from this class.
7 | */
8 | public abstract class CacheManagementPageModel : AbpPageModel
9 | {
10 | protected CacheManagementPageModel()
11 | {
12 | LocalizationResourceType = typeof(CacheManagementResource);
13 | ObjectMapperContext = typeof(CacheManagementWebModule);
14 | }
15 | }
16 | }
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.Application.Tests/CacheItems/CacheItemAppServiceTests.cs:
--------------------------------------------------------------------------------
1 | using Shouldly;
2 | using System.Threading.Tasks;
3 | using Xunit;
4 |
5 | namespace EasyAbp.CacheManagement.CacheItems
6 | {
7 | public class CacheItemAppServiceTests : CacheManagementApplicationTestBase
8 | {
9 | private readonly ICacheItemAppService _cacheItemAppService;
10 |
11 | public CacheItemAppServiceTests()
12 | {
13 | _cacheItemAppService = GetRequiredService();
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.Application.Tests/CacheManagementApplicationTestBase.cs:
--------------------------------------------------------------------------------
1 | namespace EasyAbp.CacheManagement
2 | {
3 | /* Inherit from this class for your application layer tests.
4 | * See SampleAppService_Tests for example.
5 | */
6 | public abstract class CacheManagementApplicationTestBase : CacheManagementTestBase
7 | {
8 |
9 | }
10 | }
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.Application.Tests/CacheManagementApplicationTestModule.cs:
--------------------------------------------------------------------------------
1 | using Volo.Abp.Modularity;
2 |
3 | namespace EasyAbp.CacheManagement
4 | {
5 | [DependsOn(
6 | typeof(CacheManagementApplicationModule),
7 | typeof(CacheManagementDomainTestModule)
8 | )]
9 | public class CacheManagementApplicationTestModule : AbpModule
10 | {
11 |
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.Application.Tests/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.Domain.Tests/CacheItems/CacheItemDomainTests.cs:
--------------------------------------------------------------------------------
1 | using System.Threading.Tasks;
2 | using Shouldly;
3 | using Xunit;
4 |
5 | namespace EasyAbp.CacheManagement.CacheItems
6 | {
7 | public class CacheItemDomainTests : CacheManagementDomainTestBase
8 | {
9 | public CacheItemDomainTests()
10 | {
11 | }
12 |
13 | [Fact]
14 | public async Task Test1()
15 | {
16 | // Arrange
17 |
18 | // Assert
19 |
20 | // Assert
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.Domain.Tests/CacheManagementDomainTestBase.cs:
--------------------------------------------------------------------------------
1 | namespace EasyAbp.CacheManagement
2 | {
3 | /* Inherit from this class for your domain layer tests.
4 | * See SampleManager_Tests for example.
5 | */
6 | public abstract class CacheManagementDomainTestBase : CacheManagementTestBase
7 | {
8 |
9 | }
10 | }
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.Domain.Tests/CacheManagementDomainTestModule.cs:
--------------------------------------------------------------------------------
1 | using EasyAbp.CacheManagement.EntityFrameworkCore;
2 | using Volo.Abp.Modularity;
3 |
4 | namespace EasyAbp.CacheManagement
5 | {
6 | /* Domain tests are configured to use the EF Core provider.
7 | * You can switch to MongoDB, however your domain tests should be
8 | * database independent anyway.
9 | */
10 | [DependsOn(
11 | typeof(CacheManagementEntityFrameworkCoreTestModule)
12 | )]
13 | public class CacheManagementDomainTestModule : AbpModule
14 | {
15 |
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.Domain.Tests/EasyAbp.CacheManagement.Domain.Tests.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net9.0
5 | EasyAbp.CacheManagement
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.Domain.Tests/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.Domain.Tests/Samples/SampleManager_Tests.cs:
--------------------------------------------------------------------------------
1 | using System.Threading.Tasks;
2 | using Xunit;
3 |
4 | namespace EasyAbp.CacheManagement.Samples
5 | {
6 | public class SampleManager_Tests : CacheManagementDomainTestBase
7 | {
8 | //private readonly SampleManager _sampleManager;
9 |
10 | public SampleManager_Tests()
11 | {
12 | //_sampleManager = GetRequiredService();
13 | }
14 |
15 | [Fact]
16 | public async Task Method1Async()
17 | {
18 |
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/CacheManagementEntityFrameworkCoreTestBase.cs:
--------------------------------------------------------------------------------
1 | namespace EasyAbp.CacheManagement.EntityFrameworkCore
2 | {
3 | /* This class can be used as a base class for EF Core integration tests,
4 | * while SampleRepository_Tests uses a different approach.
5 | */
6 | public abstract class CacheManagementEntityFrameworkCoreTestBase : CacheManagementTestBase
7 | {
8 |
9 | }
10 | }
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.EntityFrameworkCore.Tests/EntityFrameworkCore/Samples/SampleRepository_Tests.cs:
--------------------------------------------------------------------------------
1 | using EasyAbp.CacheManagement.Samples;
2 |
3 | namespace EasyAbp.CacheManagement.EntityFrameworkCore.Samples
4 | {
5 | public class SampleRepository_Tests : SampleRepository_Tests
6 | {
7 | /* Don't write custom repository tests here, instead write to
8 | * the base class.
9 | * One exception can be some specific tests related to EF core.
10 | */
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.EntityFrameworkCore.Tests/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.HttpApi.Client.ConsoleTestApp/CacheManagementConsoleApiClientModule.cs:
--------------------------------------------------------------------------------
1 | using Volo.Abp.Http.Client.IdentityModel;
2 | using Volo.Abp.Modularity;
3 |
4 | namespace EasyAbp.CacheManagement
5 | {
6 | [DependsOn(
7 | typeof(CacheManagementHttpApiClientModule),
8 | typeof(AbpHttpClientIdentityModelModule)
9 | )]
10 | public class CacheManagementConsoleApiClientModule : AbpModule
11 | {
12 |
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.MongoDB.Tests/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.MongoDB.Tests/MongoDB/CacheManagementMongoDbTestBase.cs:
--------------------------------------------------------------------------------
1 | namespace EasyAbp.CacheManagement.MongoDB
2 | {
3 | /* This class can be used as a base class for MongoDB integration tests,
4 | * while SampleRepository_Tests uses a different approach.
5 | */
6 | public abstract class CacheManagementMongoDbTestBase : CacheManagementTestBase
7 | {
8 |
9 | }
10 | }
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.MongoDB.Tests/MongoDB/MongoTestCollection.cs:
--------------------------------------------------------------------------------
1 | using Xunit;
2 |
3 | namespace EasyAbp.CacheManagement.MongoDB
4 | {
5 | [CollectionDefinition(Name)]
6 | public class MongoTestCollection : ICollectionFixture
7 | {
8 | public const string Name = "MongoDB Collection";
9 | }
10 | }
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.MongoDB.Tests/MongoDB/Samples/SampleRepository_Tests.cs:
--------------------------------------------------------------------------------
1 | using EasyAbp.CacheManagement.Samples;
2 | using Xunit;
3 |
4 | namespace EasyAbp.CacheManagement.MongoDB.Samples
5 | {
6 | [Collection(MongoTestCollection.Name)]
7 | public class SampleRepository_Tests : SampleRepository_Tests
8 | {
9 | /* Don't write custom repository tests here, instead write to
10 | * the base class.
11 | * One exception can be some specific tests related to MongoDB.
12 | */
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/test/EasyAbp.CacheManagement.TestBase/FodyWeavers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 |
--------------------------------------------------------------------------------