Giter Club home page Giter Club logo

bpf-developer-developerinterviewexercise's Introduction

Developer Interview Exercise

Interview exercise for C# developers

FileData is a console application.

FileData contains Program.cs which has a Main method <- this is the starting point for the app

Main takes in an array args which is a set of arguments passed in from the Console app

It also contains ThirdPartyTools <-- this is a third party app that cannot be changed

ThirdPartyTools contains FileDetails.cs which has 2 functions

  1. Version which returns a random version number
  2. Size which returns a random number

We are not looking to test if you know how to access the file system and manage files.

As such, you do not need to check if file exists etc. just pass the string into Version and Size

To setup test arguments:

  • Go to FileData -> Properties
  • In the Debug tab, enter arguments in 'Command line arguments' start with '-v C:/test.txt'

Task 1

There is a need for a prototype Console app that :

  • Takes 2 arguments
  • If the first argument is -v, pass the second argument to FileDetails.Version
  • Write the response from FileDetails.Version to the Console

Task 2

The prototype has been well received by the business who now want a full version of the app.

The new requirements are (in no particular order):

  • To call FileDetails.Version if the first argument is either of -v, --v, /v, --version
  • To call FileDetails.Size if the first argument is either of -s, --s, /s, --size

  • You need to ensure the console app is Production ready (TDD, unit tests, extensible, error handling etc. )
  • Use SOLID principles

NOTE: Once test is completed please push your code to your github account and submit your github repo link to the email id shared in the breifing.

bpf-developer-developerinterviewexercise's People

Contributors

bpf-developer avatar

Watchers

Dipesh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.