Code Monkey home page Code Monkey logo

imc.taxes's Introduction

IMC.Taxes

We use a lot of external services and API's to accommodate our customers' needs. One of them is Tax calculation. There are a lot of Tax calculation API’s out there and we need to be able to work with many of them via a common interface we define in a service class. Your code test is to simply create a Tax Service that can take a Tax Calculator in the class initialization and return the total tax that needs to be collected. We are going to use Tax Jar as one of our calculators. You will need to write a .Net client to talk to their API, do not use theirs. Can be very simple, needed methods outlined below.

We are only going to be talking to their SalesTax API: https://developers.taxjar.com/api/reference/#sales-tax-api

Here is the API Key: 5da2f821eee4035db4771edab942a4cc

The client you need to write for Tax Jar only needs to include a couple of methods: • Get the Tax rates for a location • Calculate the taxes for an order

The Tax Service will also have these methods and simply call the Tax Calculator. Eventually we would have several Tax Calculators and the Tax Service would need to decide which to use based on the Customer that is consuming the Tax Service. Unit Tests on the Tax Jar calculator and Tax Service should be included in your solution. Please let us know if you have any questions at all.
When you are finished just push your code to GitHub or BitBucket and send us the link.

Used Packages

Fluent Assertions

Fluent Validations

Refit

AutoFixture

NSubstitute

XUnit

imc.taxes's People

Contributors

ddieppa avatar

Stargazers

 avatar

Watchers

 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.