/// <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; }
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()); }
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()); }
// set the juristic method for Asr public void setAsrMethod(JuristicMethod method) { if ((int)method < 0 || (int)method > 1) return; this.asrJuristic = (int)method; }