Skip to content

Commit 0b4e4f2

Browse files
Remove SampleModule feature and all related code #18
1 parent 4e73cab commit 0b4e4f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+15
-4305
lines changed

Client.Tests/BaseTest.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ private void RegisterServices()
6262
TestContext.Services.AddLogging();
6363

6464
TestContext.Services.AddScoped<ILogService, MockLogService>();
65-
TestContext.Services.AddScoped<ISampleModuleService, MockSampleModuleService>();
6665
TestContext.Services.AddScoped<ICategoryService, MockCategoryService>();
6766
TestContext.Services.AddScoped<IUserService, MockUserService>();
6867
TestContext.Services.AddScoped<ISettingService, MockSettingService>();
@@ -156,16 +155,16 @@ protected Module CreateModuleState(int moduleId = 1, int pageId = 1, string titl
156155
PageId = pageId,
157156
Title = title,
158157
SiteId = 1,
159-
ModuleDefinitionName = "ICTAce.FileHub.SampleModule",
158+
ModuleDefinitionName = "ICTAce.FileHub",
160159
AllPages = false,
161160
IsDeleted = false,
162161
Pane = "Content",
163162
Order = 1,
164163
ContainerType = string.Empty,
165164
ModuleDefinition = new ModuleDefinition
166165
{
167-
ModuleDefinitionName = "ICTAce.FileHub.SampleModule",
168-
Name = "Sample Module",
166+
ModuleDefinitionName = "ICTAce.FileHub",
167+
Name = "FileHub",
169168
Version = "1.0.0",
170169
ServerManagerType = string.Empty,
171170
ControlTypeTemplate = string.Empty,

Client.Tests/Mocks/MockMyModuleService.cs

Lines changed: 0 additions & 130 deletions
This file was deleted.

Client.Tests/Mocks/MockOqtaneServices.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ public Task<List<ModuleDefinition>> GetModuleDefinitionsAsync(int siteId)
101101
{
102102
new ModuleDefinition
103103
{
104-
ModuleDefinitionName = "ICTAce.FileHub.SampleModule",
105-
Name = "Sample Module",
104+
ModuleDefinitionName = "ICTAce.FileHub",
105+
Name = "FileHub",
106106
Version = "1.0.0"
107107
}
108108
});
@@ -113,8 +113,8 @@ public Task<ModuleDefinition> GetModuleDefinitionAsync(int moduleDefinitionId, i
113113
return Task.FromResult(new ModuleDefinition
114114
{
115115
ModuleDefinitionId = moduleDefinitionId,
116-
ModuleDefinitionName = "ICTAce.FileHub.SampleModule",
117-
Name = "Sample Module",
116+
ModuleDefinitionName = "ICTAce.FileHub",
117+
Name = "FileHub",
118118
Version = "1.0.0"
119119
});
120120
}
@@ -124,7 +124,7 @@ public Task<ModuleDefinition> GetModuleDefinitionAsync(string moduleDefinitionNa
124124
return Task.FromResult(new ModuleDefinition
125125
{
126126
ModuleDefinitionName = moduleDefinitionName,
127-
Name = "Sample Module",
127+
Name = "FileHub",
128128
Version = "1.0.0"
129129
});
130130
}

Client.Tests/Modules/SampleModule/EditTests.cs

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)