예제 #1
0
        public Celsius CelsiusToFahrenheit(double CurrentTemprature)
        {
            Celsius celsius = new Celsius(CurrentTemprature);

            using (celsiusService = new CelsiusService())
            {
                celsius.ConvertedTemprature = celsiusService.ToFahrenheit(celsius.CurrentTemprature);
            }
            celsius.ConvertedUnit = Domain.Entities.Enums.TempratureUnit.TempratureUnits.Fahrenheit;
            return(celsius);
        }
 public void TestInit()
 {
     _kelvinService     = new KelvinService();
     _celsiusService    = new CelsiusService();
     _fahrenheitService = new FahrenheitService();
 }