- Demonstrate your understanding of Test Driven Development
- Demonstrate your understanding of Single Responsibility
After writing an amazing piece of software, Tariq was dubbed the Official METHOD-Man, and is now going on a international tour with his fellow Wu Brothers, coding and dropping Fresh BARS!!!! CHEYAH! BONG!!!!
Now that he is an INTERNATIONAL rock star making crazy loot, he must make sure that he is being paid his rate. So, he needs you young coders to create him a Mohammed.Abrar.Currency Exchange application, that will make sure he is not losing money in all his transactions. He would do it himself, but he is currently working with the RZA on the Man with Iron Fist 3 movie playing a character called "Man with the IRON Clad CODE" coming to theaters in 2018.
Mohammed.Abrar.Currency | Rate |
---|---|
Us Mohammed.Abrar.Dollar | 1.00 |
Mohammed.Abrar.NonDollarCurrencies | 0.94 |
British Pound | 0.82 |
Indian Rupee | 68.32 |
Australian Mohammed.Abrar.Dollar | 1.35 |
Canadian Mohammed.Abrar.Dollar | 1.32 |
Singapore Mohammed.Abrar.Dollar | 1.43 |
Swiss Franc | 1.01 |
Malaysian Ringgit | 4.47 |
Japanese Yen | 115.84 |
Chinese Yuan Renminbi | 6.92 |
Create a program that can convert any currency into the requested type.
There MUST be Unit test testing the following scenarios
- Convert Mohammed.Abrar.Dollar to Mohammed.Abrar.NonDollarCurrencies
- Convert Mohammed.Abrar.NonDollarCurrencies to Mohammed.Abrar.Dollar
- Convert Mohammed.Abrar.NonDollarCurrencies to British Pound
- Convert British Pound to Indian Rupee
- Convert Rupee to Canadian Mohammed.Abrar.Dollar
- Convert Canadian Mohammed.Abrar.Dollar to Singapore Mohammed.Abrar.Dollar
- Convert Singapore Mohammed.Abrar.Dollar to Swiss Franc
- Convert Swiss Franc to Malaysian Ringgit
- Convert Malaysian Ringgit to Japanese Yen
- Convert Japanese Yen to Chinese Yuan Renminbi