public static void CheckProperties(WebServerSettings settings)
 {
     TestUtilities.TestProperty(settings, "AuthenticationScheme", AuthenticationSchemes.Anonymous, AuthenticationSchemes.Basic);
     TestUtilities.TestProperty(settings, "AutoStartUPnP", false);
     TestUtilities.TestProperty(settings, "BasicAuthenticationUser", null, "Bb");
     TestUtilities.TestProperty(settings, "BasicAuthenticationPasswordHash", null, new Hash());
     TestUtilities.TestProperty(settings, "EnableUPnp", false);
     TestUtilities.TestProperty(settings, "IsOnlyInternetServerOnLan", true);
     TestUtilities.TestProperty(settings, "UPnpPort", 80, 99);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new object.
 /// </summary>
 public Configuration()
 {
     BaseStationSettings    = new BaseStationSettings();
     FlightRouteSettings    = new FlightRouteSettings();
     WebServerSettings      = new WebServerSettings();
     GoogleMapSettings      = new GoogleMapSettings();
     VersionCheckSettings   = new VersionCheckSettings();
     InternetClientSettings = new InternetClientSettings();
     AudioSettings          = new AudioSettings();
     RawDecodingSettings    = new RawDecodingSettings();
 }
 /// <summary>
 /// Creates a new object.
 /// </summary>
 public Configuration()
 {
     BaseStationSettings = new BaseStationSettings();
     FlightRouteSettings = new FlightRouteSettings();
     WebServerSettings = new WebServerSettings();
     GoogleMapSettings = new GoogleMapSettings();
     VersionCheckSettings = new VersionCheckSettings();
     InternetClientSettings = new InternetClientSettings();
     AudioSettings = new AudioSettings();
     RawDecodingSettings = new RawDecodingSettings();
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Creates a new object.
        /// </summary>
        public Configuration()
        {
            BaseStationSettings    = new BaseStationSettings();
            FlightRouteSettings    = new FlightRouteSettings();
            WebServerSettings      = new WebServerSettings();
            GoogleMapSettings      = new GoogleMapSettings();
            VersionCheckSettings   = new VersionCheckSettings();
            InternetClientSettings = new InternetClientSettings();
            AudioSettings          = new AudioSettings();
            RawDecodingSettings    = new RawDecodingSettings();
            MonoSettings           = new MonoSettings();

            _MergedFeeds.ListChanged         += MergedFeeds_ListChanged;
            _RebroadcastSettings.ListChanged += RebroadcastSettings_ListChanged;
            _ReceiverLocations.ListChanged   += ReceiverLocations_ListChanged;
            _Receivers.ListChanged           += Receivers_ListChanged;
        }
 public void TestInitialise()
 {
     _Implementation = new WebServerSettings();
 }