diff --git a/BeWoPlanerMobil/BeWoPlanerMobil.csproj b/BeWoPlanerMobil/BeWoPlanerMobil.csproj
index 21b639966..3102cfb14 100644
--- a/BeWoPlanerMobil/BeWoPlanerMobil.csproj
+++ b/BeWoPlanerMobil/BeWoPlanerMobil.csproj
@@ -184,8 +184,8 @@
..\packages\EntityFramework.6.5.1\lib\net45\EntityFramework.SqlServer.dll
-
- ..\packages\log4net.3.0.4\lib\net462\log4net.dll
+
+ ..\packages\log4net.3.1.0\lib\net462\log4net.dll
..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.4.1.0\lib\net472\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
@@ -220,9 +220,6 @@
-
- ..\packages\System.Memory.4.6.2\lib\net462\System.Memory.dll
-
..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Extensions.dll
@@ -237,13 +234,7 @@
..\packages\System.Numerics.Vectors.4.6.1\lib\net462\System.Numerics.Vectors.dll
-
- ..\packages\System.Runtime.CompilerServices.Unsafe.6.1.1\lib\net462\System.Runtime.CompilerServices.Unsafe.dll
-
-
- ..\packages\System.Threading.Tasks.Extensions.4.6.2\lib\net462\System.Threading.Tasks.Extensions.dll
-
@@ -305,7 +296,7 @@
-
+
@@ -319,7 +310,7 @@
-
+
@@ -671,10 +662,10 @@
-
-
-
-
+
+
+
+
@@ -763,7 +754,7 @@
- False
+ True
False
8808
/
diff --git a/BeWoPlanerMobil/Controllers/DebuggingToolsController.cs b/BeWoPlanerMobil/Controllers/DevToolsController.cs
similarity index 74%
rename from BeWoPlanerMobil/Controllers/DebuggingToolsController.cs
rename to BeWoPlanerMobil/Controllers/DevToolsController.cs
index 21a68fb19..23f9c131b 100644
--- a/BeWoPlanerMobil/Controllers/DebuggingToolsController.cs
+++ b/BeWoPlanerMobil/Controllers/DevToolsController.cs
@@ -1,13 +1,15 @@
using System.Web.Mvc;
using BeWoPlanerMobil.Models;
using BeWoPlanerMobil.Service;
+using Bogus;
+using BS.Shared.DataContracts;
namespace BeWoPlanerMobil.Controllers
{
- public class DebuggingToolsController : AbstractBaseController
+ public class DevToolsController : AbstractBaseController
{
- private DebuggingToolsModel _Model;
- public DebuggingToolsModel Model
+ private DevToolsModel _Model;
+ public DevToolsModel Model
{
get
{
@@ -19,7 +21,7 @@ namespace BeWoPlanerMobil.Controllers
if(_Model is null)
{
- _Model = new DebuggingToolsModel();
+ _Model = new DevToolsModel();
InitModel(_Model);
}
@@ -28,7 +30,7 @@ namespace BeWoPlanerMobil.Controllers
}
[Authorize]
- public ActionResult DebuggingTools()
+ public ActionResult DevTools()
{
if(!MobileSessionFacade.IsUserLoggedIn() || Model is null)
{
@@ -65,5 +67,16 @@ namespace BeWoPlanerMobil.Controllers
return LeerzeichenFuerGetMethoden;
}
+
+ private Faker _AddressFaker = new Faker("de");
+
+ [Authorize]
+ [HttpPost]
+ public ActionResult GenerateDemoData()
+ {
+
+
+ return PartialView("DevToolsDataGenerationPartial", Model);
+ }
}
}
\ No newline at end of file
diff --git a/BeWoPlanerMobil/Models/DebuggingToolsModel.cs b/BeWoPlanerMobil/Models/DevToolsModel.cs
similarity index 99%
rename from BeWoPlanerMobil/Models/DebuggingToolsModel.cs
rename to BeWoPlanerMobil/Models/DevToolsModel.cs
index 1a8f49bc9..671a1d760 100644
--- a/BeWoPlanerMobil/Models/DebuggingToolsModel.cs
+++ b/BeWoPlanerMobil/Models/DevToolsModel.cs
@@ -6,7 +6,7 @@ using BS.Shared.Extensions;
namespace BeWoPlanerMobil.Models
{
- public class DebuggingToolsModel : AbstractModel
+ public class DevToolsModel : AbstractModel
{
// Rechtegruppen
// Benutzer
diff --git a/BeWoPlanerMobil/Service/ASPHibernateSessionManager.cs b/BeWoPlanerMobil/Service/ASPHibernateSessionManager.cs
index 49d935d54..29c551d02 100644
--- a/BeWoPlanerMobil/Service/ASPHibernateSessionManager.cs
+++ b/BeWoPlanerMobil/Service/ASPHibernateSessionManager.cs
@@ -42,10 +42,10 @@ namespace BeWoPlanerMobil.Service
if(!SessionFactories.ContainsKey(MobileSessionFacade.Tenant))
{
#if DEBUG
- //var hierarchy = (Hierarchy) LogManager.GetRepository();
- //var logger = (Logger) hierarchy.GetLogger("NHibernate.SQL");
- //logger.AddAppender(new TraceAppender { Layout = new SimpleLayout() });
- //hierarchy.Configured = true;
+ var hierarchy = (Hierarchy)LogManager.GetRepository();
+ var logger = (Logger)hierarchy.GetLogger("NHibernate.SQL");
+ logger.AddAppender(new TraceAppender { Layout = new SimpleLayout() });
+ hierarchy.Configured = true;
#endif
var serverPath = HttpContext.Current.Server.MapPath(null);
diff --git a/BeWoPlanerMobil/Util/FormCollectionConstants.cs b/BeWoPlanerMobil/Util/FormCollectionConstants.cs
index 382f80294..69cbaca95 100644
--- a/BeWoPlanerMobil/Util/FormCollectionConstants.cs
+++ b/BeWoPlanerMobil/Util/FormCollectionConstants.cs
@@ -65,7 +65,7 @@
// public static string DevelopmentModelKey => "DevelopmentModel";
// public static string DevExpressReportModelKey => "DevExpressReportModel";
// public static string ReportViewerModelKey => "ReportViewerModel";
- // public static string DebuggingToolsModelKey => "DebuggingToolsModel";
+ // public static string DebuggingToolsModelKey => "DevToolsModel";
//}
public class TempDataConstants
diff --git a/BeWoPlanerMobil/Views/DebuggingTools/DebuggingTools.cshtml b/BeWoPlanerMobil/Views/DevTools/DevTools.cshtml
similarity index 97%
rename from BeWoPlanerMobil/Views/DebuggingTools/DebuggingTools.cshtml
rename to BeWoPlanerMobil/Views/DevTools/DevTools.cshtml
index a5a62df22..9739aa8ec 100644
--- a/BeWoPlanerMobil/Views/DebuggingTools/DebuggingTools.cshtml
+++ b/BeWoPlanerMobil/Views/DevTools/DevTools.cshtml
@@ -1,5 +1,5 @@
@using BeWoPlanerMobil.Util
-@model BeWoPlanerMobil.Models.DebuggingToolsModel
+@model BeWoPlanerMobil.Models.DevToolsModel
@{
if(TempData[TempDataConstants.DoLogoutKey] is bool doLogout && doLogout)
diff --git a/BeWoPlanerMobil/Views/DebuggingTools/DevToolsDataGenerationPartial.cshtml b/BeWoPlanerMobil/Views/DevTools/DevToolsDataGenerationPartial.cshtml
similarity index 86%
rename from BeWoPlanerMobil/Views/DebuggingTools/DevToolsDataGenerationPartial.cshtml
rename to BeWoPlanerMobil/Views/DevTools/DevToolsDataGenerationPartial.cshtml
index 13310ccff..316f19079 100644
--- a/BeWoPlanerMobil/Views/DebuggingTools/DevToolsDataGenerationPartial.cshtml
+++ b/BeWoPlanerMobil/Views/DevTools/DevToolsDataGenerationPartial.cshtml
@@ -1,7 +1,7 @@
@using BeWoPlanerMobil.Models
@using BeWoPlanerMobil.Util
@using BS.Shared
-@model DebuggingToolsModel
+@model DevToolsModel
Hier kann man bald Daten zum Testen generieren ...
diff --git a/BeWoPlanerMobil/Views/DebuggingTools/DevToolsSettingsPartial.cshtml b/BeWoPlanerMobil/Views/DevTools/DevToolsSettingsPartial.cshtml
similarity index 99%
rename from BeWoPlanerMobil/Views/DebuggingTools/DevToolsSettingsPartial.cshtml
rename to BeWoPlanerMobil/Views/DevTools/DevToolsSettingsPartial.cshtml
index fb4017912..661e41d50 100644
--- a/BeWoPlanerMobil/Views/DebuggingTools/DevToolsSettingsPartial.cshtml
+++ b/BeWoPlanerMobil/Views/DevTools/DevToolsSettingsPartial.cshtml
@@ -1,6 +1,6 @@
@using BeWoPlanerMobil.Models
@using BeWoPlanerMobil.Util
-@model DebuggingToolsModel
+@model DevToolsModel