Skip to content

Task for writing code for string operations against given unit tests, and adding an HTTP endpoint in another project while re-using the components of the original project.

Notifications You must be signed in to change notification settings

dancita/string-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

string-processor

Tech Test

Overview

The test consists of two projects:

  • StringProcessor - the main project.
  • StringProcessor.Tests - the unit test project (using xUnit).

Tasks

  1. Write code in the main project to ensure that the four unit tests pass.
    Note: for the purposes of this test, a word includes punctuation. "I'm" is a single word and "that." is five characters long (including the full-stop).

  2. Add a project and code to the solution to fulfil the following requirement:

    GIVEN a text string
    WHEN it is sent to a HTTP API endpoint
    THEN JSON representing the populated StringStatsModel is returned

    Ensure that you can test this via your preferred method (Postman, integration test or webpage, etc)

  3. (Optional / for bonus points) Write a fifth unit test which tests very large input to the StringStatsProcessor.Run(string) method.

About

Task for writing code for string operations against given unit tests, and adding an HTTP endpoint in another project while re-using the components of the original project.

Topics

Resources

Stars

Watchers

Forks

Languages