Skip to content

jon-bruno/data-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DataApp

This is a sample application that needs some work done to it. Think of these two items as tickets to complete:

  1. The function DataApp.DataManager.ConsolidateDataFromSources returns three possible values (0, -1, & -2). The issue is there are no unit tests for this method. Add at least 3 unit tests to the DataApp.Tests project to validate the 3 possible code paths.

  2. The DataApp.Program.Main method is really slow and bound by network I/O. Update the code so all 11 method calls to ConsolidateDataFromSources (1-10 and 27) execute concurrently. In no required order, each call should print their return value to the console. Once complete print "Completed".

Rules

Do not break any existing functionality.

There are two methods, DataApp.DataFetcher.FetchData and DataApp.DataStorage.StoreData surrounded by comment lines // Implementation locked - do not change and // End of locked implementation. No changes can be made to those sections, but changes can be made to the classes surrounding them.

Add or modify any other code (including adding/changing class names, variables, libraries, etc).

DataApp.DataManager should still call the methods FetchData and StoreData.

The solution should still compile successfully and pass all unit tests.

All resources are available for use (Google, StackOverflow, previously written code, etc).

Bring a copy of the solution to the technical interview, where we will review it together. Be prepared to explain any changes made.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages