private static void WithoutUsingFacadePattern() { var zoneFinder = new ZoneFinder(); var zone = zoneFinder.GetZone("12455623"); var tempratureService = new TempratureService(); var tempf = tempratureService.GetTemp(zone); var tempConvertor = new TempConvertor(); var finalTemp = tempConvertor.GetS(tempf); Console.WriteLine("Final Temp : " + finalTemp); }
public double GetTempByS(string postalCode) { ZoneFinder zoneFinder = new ZoneFinder(); var zone = zoneFinder.GetZone("454545"); TempratureService service = new TempratureService(); var tempF = service.GetTemp(zone); TempConvertor convertor = new TempConvertor(); var tempS = convertor.GetS(tempF); return(tempS); }
public int GetTemp(string postalCode) { var zoneFinder = new ZoneFinder(); var zone = zoneFinder.GetZone(postalCode); var tempratureService = new TempratureService(); var tempf = tempratureService.GetTemp(zone); var tempConvertor = new TempConvertor(); var finalTemp = tempConvertor.GetS(tempf); return(finalTemp); }