GithubHelp home page GithubHelp logo

iftg_coding-assignment's Introduction

SettlementBookingTest

go down to my implementation plan

Versions

  1. Basic Implementation

BasicBookingController provides an implementation within the controller that is complete but poorly written.

  1. Mediator Implementation

MediatorBookingController provides an implementation using the mediator pattern and the data is stored in an Interval Tree for O(log m + n) access. This implementatrion also provides unit tests with a mocked repository.

How to execute

  1. Basic:
curl --request POST \
  --url https://localhost:44355/BasicBooking \
  --header 'Content-Type: application/json' \
  --data '{
	"bookingTime": "09:00",
	"name": "Keith"
}'
  1. Mediator
curl --request POST \
  --url https://localhost:44355/MediatorBooking \
  --header 'Content-Type: application/json' \
  --data '{
	"bookingTime": "09:30",
	"name": "John"
}'

My Implementation Plan

what I did :

  • restructure the project
  • I add Automapper for fluent mapping from entity to dto, I believe in some cases we should control the mapping on our own not only for performance and complex mapping base on project, but for demonstration purpose this is what I got.
  • I add configuration data (Option Pattern) that can be control via BookingSystemOptions I use this on my last project which support multi tenancy and can be deploy to 2 region this option pattern give me the control on each instance have different configuration.
  • Mapping Configuration
  • Implemented
  • Add new OutOfWorkingHourException

iftg_coding-assignment's People

Contributors

justinhammer-teck 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.