Skip to content

mano-code/TpcInterviewTest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TPC Interview Test

Please fork this repo and submit the link to your forked repo.

We are testing basic c# and javascript skills.

Javascript

Fire up a terminal and change to ./src/JsStuff and run npm install

We are using mochajs for testing. Use npm run test to execute the test runner.

See the comments in hello.js and hello-test.js on what to write.

csharp

We are using dotnet core. Fire up the Visual Studio and load TpcInterviewTest.sln

This is a short refactoring exercise.

The class Services.Logger violates the Open Close Principle.

Refactor this class so that message logging types are passed in when constructing Services.Logger and write a test in the Services.UnitTests project ensure Services.Logger.Log is being called with a single string parameter.

You don't need to install or use an IOC package - We are just looking to see how you refactor and write tests

Xunit and MOQ (alpha) have already been installed in the solution. If you have a different preferred mocking or fakes framework, feel free to change it :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 89.1%
  • JavaScript 10.9%