Tasks 184281, 184799, 184800, 184801 and 184802
Align .editorconfig files Move Controller logic to DMO classes GlobalVars.AppSettings = Models.AppSettings.GetFromConfigurationManager(); Question EditorConfig Project level editorconfig Format White Spaces AppSetting when EnvironmentVariable not set Corrective Actions Tests Schedule Actions Tests DMO Tests Controller Tests Get ready to use VSCode IDE
This commit is contained in:
@ -1,39 +1,32 @@
|
||||
using Fab2ApprovalSystem.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Fab2ApprovalSystem.Misc
|
||||
{
|
||||
public class DemoHelper
|
||||
{
|
||||
public static List<string> GetCountries()
|
||||
{
|
||||
return new List<string>
|
||||
{
|
||||
"USA", "England", "Belguim", "France", "Italy"
|
||||
};
|
||||
}
|
||||
using Fab2ApprovalSystem.Models;
|
||||
|
||||
public List<TestModel> ListOfModels = new List<TestModel>();
|
||||
namespace Fab2ApprovalSystem.Misc;
|
||||
|
||||
private static DemoHelper m_dHelper = new DemoHelper();
|
||||
public static DemoHelper Instance
|
||||
{
|
||||
get { return m_dHelper; }
|
||||
}
|
||||
|
||||
private DemoHelper()
|
||||
{
|
||||
TestModel A1 = new TestModel();
|
||||
A1.Name = "Eran";
|
||||
A1.Countries = new List<string>();
|
||||
A1.Countries.Add("England");
|
||||
A1.Countries.Add("Belguim");
|
||||
ListOfModels.Add(A1);
|
||||
|
||||
}
|
||||
public class DemoHelper {
|
||||
|
||||
public static List<string> GetCountries() {
|
||||
return new List<string>
|
||||
{
|
||||
"USA", "England", "Belguim", "France", "Italy"
|
||||
};
|
||||
}
|
||||
|
||||
public List<TestModel> ListOfModels = new();
|
||||
|
||||
private static readonly DemoHelper m_dHelper = new();
|
||||
public static DemoHelper Instance {
|
||||
get { return m_dHelper; }
|
||||
}
|
||||
|
||||
private DemoHelper() {
|
||||
TestModel A1 = new();
|
||||
A1.Name = "Eran";
|
||||
A1.Countries = new List<string>();
|
||||
A1.Countries.Add("England");
|
||||
A1.Countries.Add("Belguim");
|
||||
ListOfModels.Add(A1);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user