Esempio n. 1
0
        public ShellSettings(
            string name, TenantState tenantState)
        {
            RootConfiguration = new ConfigurationRoot(new[] { new InternalConfigurationProvider() });

            Name  = name;
            State = tenantState;
        }
Esempio n. 2
0
        public ShellSettings(
            string name, TenantState tenantState)
        {
            RootConfiguration = new ConfigurationRoot(new[] { new InternalConfigurationProvider() });

            Name = name;
            State = tenantState;
        }
Esempio n. 3
0
        public ShellSettings(IDictionary <string, string> configuration)
        {
            _values = configuration;

            if (!configuration.ContainsKey("State") || !Enum.TryParse(configuration["State"], true, out _tenantState))
            {
                _tenantState = TenantState.Invalid;
            }
        }
Esempio n. 4
0
 public Tenant(int maxRent, int minQuality, TenantState state)
 {
     Name       = string.Format("{0} {1}", firstNames.RandomItem(), lastNames.RandomItem());
     Rent       = 0;
     MaxRent    = maxRent;
     MinQuality = minQuality;
     NeedRepair = false;
     Message    = "";
     // Evictable = false;
     State = state;
 }
Esempio n. 5
0
 public ShellSettings()
 {
     State = new TenantState("Invalid");
 }
Esempio n. 6
0
 public void UpdateState(TenantState newState)
 {
     State = newState;
 }
Esempio n. 7
0
 public ShellSettings() {
     State = new TenantState("Invalid");
     Themes = new string[0];
 }
Esempio n. 8
0
 public ShellSettings()
 {
     State  = new TenantState("Invalid");
     Themes = new string[0];
 }