I had to take a long break from laptops last weeks and coming back to routine slowly. Let's see if I could clarify you:
In the Domain you design your Model putting your business logic in priority. Suppose your application gives you suggestions of what to do based on the local weather.
namespaceDomain{usingSystem;publicinterfaceIWeather{decimalTemperature{get;}stringGetDailySuggestions();}publicinterfaceIWeatherGateway{Task<IWeather>GetWeather();}publicabstractclassWeather:IWeather{publicabstractdecimalTemperature{get;}publicstringGetDailySuggestions(){//// The business logic need to know the temperature outside then you// write your code against the interface//if(this.Temperature<10){return"Stay at home. Watch Netflix.."}else{return"Go walk in the forest."}}}}
Hi @darianbenito ,
I had to take a long break from laptops last weeks and coming back to routine slowly. Let's see if I could clarify you:
In the Domain you design your Model putting your business logic in priority. Suppose your application gives you suggestions of what to do based on the local weather.
Later you write a weather provider:
Thanks again for reaching me out, I really appreciate feedback.
I hope this would give you insights.
Best,
Ivan
Thanks Ivan!