Ejemplo n.º 1
0
#pragma warning disable IDE0060 // Remove unused parameter
        public static void Main(string[] args)
#pragma warning restore IDE0060 // Remove unused parameter
        {
            // TODO add debug modifiers to tweak stuff while debugging

            // Load app settings:
            SettingsManager.LoadSettings();
            // Init all HTTP actions
            ActionRegister.Register();

            if (!CoreState.SettingsInstance.IsFirstLaunch)
            {
                HardwareHelper.InitHardware();
            }
            else
            {
                ConsoleManager.LogInfo("Waiting for hardware initialization.");
            }

            // Server initialization:
            HttpServer server = new HttpServer(CoreState.SettingsInstance.LocalServerAddress, CoreState.SettingsInstance.LocalServerPort);
            Task       listen = server.Listen();

            listen.GetAwaiter().GetResult();
        }
Ejemplo n.º 2
0
        public nspec()
        {
            context  = new ActionRegister(AddContext);
            describe = new ActionRegister(AddContext);

            it  = new ActionRegister((name, action) => Exercise(new Example(name, action, pending: action == todo)));
            xit = new ActionRegister((name, action) => Exercise(new Example(name, action, pending: true)));
        }
Ejemplo n.º 3
0
 public DataSeed(
     UserManager <ApplicationUser> userManager,
     RoleManager <ApplicationRole> roleManager,
     ActionRegister actionRegister)
 {
     this.userManager    = userManager;
     this.roleManager    = roleManager;
     this.actionRegister = actionRegister;
 }
Ejemplo n.º 4
0
        public nspec()
        {
            context   = new ActionRegister(AddContext);
            xcontext  = new ActionRegister(AddIgnoredContext);
            describe  = new ActionRegister(AddContext);
            xdescribe = new ActionRegister(AddIgnoredContext);

            it  = new ActionRegister((name, tags, action) => AddExample(new Example(name, tags, action, pending: action == todo)));
            xit = new ActionRegister((name, tags, action) => AddExample(new Example(name, tags, action, pending: true)));
        }
Ejemplo n.º 5
0
 public DataSeed(
     UserManager <ApplicationUser> userManager,
     RoleManager <ApplicationRole> roleManager,
     ActionRegister actionRegister,
     CoreDbContext context,
     TicketDbContext ticketContext)
 {
     this.userManager    = userManager;
     this.roleManager    = roleManager;
     this.actionRegister = actionRegister;
     this.context        = context;
     this.ticketContext  = ticketContext;
 }
 public RoleTypeaheadRemoteSource(ActionRegister actionRegister)
 {
     this.actionRegister = actionRegister;
 }
Ejemplo n.º 7
0
 public RoleTypeaheadInlineSource(ActionRegister actionRegister)
 {
     this.actionRegister = actionRegister;
 }