Added modular event system
This commit is contained in:
@@ -22,7 +22,7 @@ public class HopFrameEditorTests : TestContext {
|
||||
var dialogServiceMock = new Mock<IDialogService>();
|
||||
var toastServiceMock = new Mock<IToastService>();
|
||||
var serviceProviderMock = new Mock<IServiceProvider>();
|
||||
var contextConfig = new DbContextConfig(typeof(MyDbContext));
|
||||
var contextConfig = new DbContextConfig(typeof(MyDbContext), null!);
|
||||
var tableConfig = new TableConfig(contextConfig, typeof(MyTable), "Table1", 0) {
|
||||
DisplayName = "Table1",
|
||||
ViewPolicy = "Policy1"
|
||||
|
||||
@@ -17,7 +17,7 @@ public class HopFrameSideMenuTests : TestContext {
|
||||
// Arrange
|
||||
var contextExplorerMock = new Mock<IContextExplorer>();
|
||||
var authHandlerMock = new Mock<IHopFrameAuthHandler>();
|
||||
var contextConfig = new DbContextConfig(typeof(MyDbContext));
|
||||
var contextConfig = new DbContextConfig(typeof(MyDbContext), null!);
|
||||
var tableConfigs = new List<TableConfig> {
|
||||
new (contextConfig, typeof(MyTable), "Table1", 0),
|
||||
new (contextConfig, typeof(MyTable2), "Table2", 1)
|
||||
|
||||
@@ -16,7 +16,7 @@ public class HopFrameHomeTests : TestContext {
|
||||
// Arrange
|
||||
var contextExplorerMock = new Mock<IContextExplorer>();
|
||||
var authHandlerMock = new Mock<IHopFrameAuthHandler>();
|
||||
var contextConfig = new DbContextConfig(typeof(MyDbContext));
|
||||
var contextConfig = new DbContextConfig(typeof(MyDbContext), null!);
|
||||
var tableConfigs = new List<TableConfig> {
|
||||
new TableConfig(contextConfig, typeof(MyTable), "Table1", 0) {
|
||||
DisplayName = "Table1",
|
||||
|
||||
@@ -19,7 +19,7 @@ public class HopFrameTablePageTests : TestContext {
|
||||
var contextExplorerMock = new Mock<IContextExplorer>();
|
||||
var authHandlerMock = new Mock<IHopFrameAuthHandler>();
|
||||
var dialogServiceMock = new Mock<IDialogService>();
|
||||
var contextConfig = new DbContextConfig(typeof(MyDbContext));
|
||||
var contextConfig = new DbContextConfig(typeof(MyDbContext), null!);
|
||||
var managerMock = new Mock<ITableManager>();
|
||||
var tableConfig = new TableConfig(contextConfig, typeof(MyTable), "Table1", 0) {
|
||||
DisplayName = "Table1",
|
||||
@@ -63,7 +63,7 @@ public class HopFrameTablePageTests : TestContext {
|
||||
var contextExplorerMock = new Mock<IContextExplorer>();
|
||||
var authHandlerMock = new Mock<IHopFrameAuthHandler>();
|
||||
var dialogServiceMock = new Mock<IDialogService>();
|
||||
var contextConfig = new DbContextConfig(typeof(MyDbContext));
|
||||
var contextConfig = new DbContextConfig(typeof(MyDbContext), null!);
|
||||
var tableConfig = new TableConfig(contextConfig, typeof(MyTable), "Table1", 0) {
|
||||
DisplayName = "Table1",
|
||||
ViewPolicy = "Policy1"
|
||||
|
||||
Reference in New Issue
Block a user