Exemple #1
0
 /// <summary>
 ///     Create a new instance of <see cref="PrayerCalculationSettings" /> object.
 /// </summary>
 public PrayerCalculationSettings()
 {
     ImsakParameter         = new PrayerCalculationParameter(-10.0, PrayerCalculationParameterType.MinutesAdjust);
     CalculationMethod      = new CalculationMethod();
     JuristicMethod         = new JuristicMethod();
     HighLatitudeAdjustment = HighLatitudeAdjustment.None;
 }
Exemple #2
0
        public void TestSetPresetHanafi()
        {
            var method = new JuristicMethod();

            method.SetJuristicMethodPreset(JuristicMethodPreset.Hanafi);

            Assert.Equal(JuristicMethodPreset.Hanafi, method.Preset);
            Assert.Equal(2, method.TimeOfShadow);
            Assert.Equal(JuristicMethodPreset.Hanafi, method.GetJuristicMethodPreset());
        }
Exemple #3
0
        public void TestSetPresetStandard()
        {
            var method = new JuristicMethod();

            method.SetJuristicMethodPreset(JuristicMethodPreset.Standard);

            Assert.Equal(JuristicMethodPreset.Standard, method.Preset);
            Assert.Equal(1, method.TimeOfShadow);
            Assert.Equal(JuristicMethodPreset.Standard, method.GetJuristicMethodPreset());
        }
Exemple #4
0
 // set the juristic method for Asr
 public void setAsrMethod(JuristicMethod method)
 {
     if ((int)method < 0 || (int)method > 1)
         return;
     this.asrJuristic = (int)method;
 }