Console application which reads the Test data and hits the WeatherAPI and fetches current and future weather updates and stores them in Files based on City name and Date maintaining the historic data #nunit #Newtonsoft #openWeatherMapAPI #restAPI
- Download and run the WeatherForecast.sln solution
- User must have access to Environment variable i.e.
MyDocuments\Documents
Folder - User must have a file
"TestData.txt"
inMyDocuments \ Documents
Folder, for eg in my case it would be:C:\Users\aagam\Documents\TestData.txt
- Refer or Download the sample file from here : TestData.txt
- Output folder will be created in
Documents/Prudential_WeatherData
- After building the application. User will be prompted to place the proper
TestData.txt
inDocuments
Folder. After that press Enter to continue processing of the files - Files will be autogenerated in
Documents/Prudential_WeatherData
folder
-
To check access for Environment variable for accessing
Documents
folder from code kindly run the N-unit test cases. -
Contact if facing any issues in running the setup