• Stars
    star
    1
  • Language
    C#
  • Created over 4 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Design Solution Explained. A Recursive Algorithm determining routes to destinations via numerous assortment of cities in a country. TDD, C#, .Net. My Approach was to Hold all the given routes in a Dictionary, encapsulating the Dictionary in a RouteTable Class. 1) I use a IRouteTable Interface to expose contracts for the calculator Class to use, while inject into the Journey Calculator class the instance of class implementing the Interface. A call on the _routeTable methods from the Journey Calculator Class is therefore all one needs to use to execute the code. My intentions was to refactor code accordingly but like I said, 3 hours is very little when logic starts mangling your mind. 2) I would have used Dependency Injection, but time was of the essence, as I had to bug fix my code. IoC containers like Unity or AutoFac could be used. 3) Unit tests, I wrote in bulk at once and got caught up debugging the code base, as each test passed or failed. Normally I would write the Tests in tandem with the Code, and refactor. AS time was of the Essence. 4) My implentation is: A route Table that holds all possible hop routes e.g. Dictionary<string,int> where key is AB and value is 3 for instance when moving a hop from A to B with a distance of 3. I then wrote a recursive function which gives me a separate dictionary with detailed hops and journey times for any given trip. Other functions make use of this same function and other extensions using linq to calculate values accordingly. Also chose to use a StringBuilder that builds the number of Routes recursively, terminating all possible routes with a character colon at the same time separating every route hop by semicolon. This I then used to populate a separate Dictionary of Dictionary<string,int> (Full hops as Key against distance accumulated as value) I am sure this implementation should work, but I don't know why the tests which I got caught up trying to debug are actually failing. I simply run out of time.

More Repositories

1

EntertainmentTicketMaster

Entertainment Ticket Master Web API, MVC 5 ASP.net C#, Unity (IoC), UnitOfWork, Entity Framework 6, MSTest, Moq, Jquery, Ajax, Repository Pattern, Interface Segregation & Marker Pattern, Singleton & Factory Patterns, Unit of Work Patterns
CSS
8
star
2

MyFundiVersion4

Site built on Angular 8 and .NET Core 3.1 ,TSQL, Code First Entity Framework Core, with C#, ASP.net MVC 6 and .NET Core Web Api, SQLServer 2014. Patterns include Repository, Unit Of Work, and Solid Priciples with Code First Entity Framework atop a 2014 SQLServer DB. My Fundi is a Prototype app that caters for Fundis (manual workers like plumbers)
JavaScript
4
star
3

FSCSTestApp-Martin-Okello

Using Entity Framework 6, Moq, Code First, Database Create & Drop plus Seeding, UnitOfWork, InterfaceSegregation & Marker Pattern, Factory, Singleton, Repository Patterns. N-Tier ASP.net MVC 5 App. Adding Migrations, Multi result set Stored procedure call
C#
3
star
4

PhoneContactApi

OAuth Token - Phone Contact Api Challenge Hack a Job - ASP.net Web Api 2, C#, Unity IoC, MSTest Unit Testing TDD, Entity Framework Code First
C#
2
star
5

RestaurantBooking

ASP.net C# MVC 5, and Repostitory Pattern with UnitOfWorkPattern, JQuery, CSS, HTML, Restaurant Booking Web App
C#
2
star
6

AfricanFarmersCommodities

African Farmers Commodities Site is built as a single page app to help African Farmers manage their commodities getting into the global market - site built on Angular 8 and .NET Core 3.1, TSQLCode First Entity Framework Core, with C#, ASP.net MVC 6 and .NET Core Web Api, TSQL, SQLServer 2014. Patterns include Repository, UnitOfWork, SOLID Principle
JavaScript
2
star
7

AngularShoppingBasketV2

Angular 6 Shopping Basket, using Services Injected into template. Testing knowledge on Angular, Typescript, HTML5, CSS3, Bootstrap and Javascript
TypeScript
1
star
8

SiteCrawler

Free Site Crawler, Site Map Generator, Site Map builder: MVC 5, ASP.net C#, SQLServer, Entity Framework. Inversion Of Control (IoC - Unity), Unit Of Work, SOLID Principles, Repository, Marker Patterns, N-Tier Architecture. No Unit Tests due to time constraints
C#
1
star
9

DCSLCopyDirectoryApp

C# Winforms App, Recursive copy of Directory and Files
C#
1
star
10

IpagooWeb

TDD Code First Asp.net MVC 5 CSharp, Entity Framework 6.1 Inversion Of Control (Unity)
C#
1
star
11

DelmaticColourCodePick

Angular 8 Lighting sample for Delmatic
TypeScript
1
star
12

BJSS.ShoppingBasketApp

Tech test BJSS Shopping Basket C# Strategy Pattern, TDD, SOLID principles
C#
1
star
13

GrmPlatformDistributor

Tech Test - CSV Data Access, TDD, Strategy Pattern. Music Platform Aggregator. C# Console App, with Unit Tests
C#
1
star
14

RSSFeedApp

MVC 5, RSS feed consumer - XML Data Store Manipulation, JQuery, AJAX, WCF Web Services
C#
1
star
15

ZopaLoanScheme

C#.NET TDD Loan Scheme Finance Test for Zopa Loans Test Driven Development Using MS Test
C#
1
star
16

AnteeoHotelLocator

ASP.net C# MVC 5 Region, Country, Hotel and Airport Application, consuming Web API Service - Location ()
C#
1
star
17

GenericQueueAndStackDataStructures

Generic Queue and Stack Data Structures in .NET C# Implementation without using Collections - By the Medallion
C#
1
star
18

ADOnetDataAccessPattern

ADO.net Data Access Patterns Using Reflection to Parse Sql Parameters
C#
1
star
19

TungstenRssFeeds

ASP.net Web Api 2 C# Rss Feeds Application with JQuery and Javascript front end. No Unit tests due to time constraints
C#
1
star
20

TeachersAssistant

App to manage Teachers Work Load as Tutor to Students. ASP.net MVC 5, Asp.Net Identity, Roles, Repository Pattern, UnitOfWork, Ioc (Unity), Entity Framework 6.1, C#, Sqlserver 2012, HTML5, CSS3, Bootstrap, Javascript, JQuery
JavaScript
1
star
21

ClientSidePagingJavaScript

ASP.net MVC 5, Client Side Javascript Paging of Database collection of Products with Ajax, and JQuery, and well formed OO principles in Javascript
HTML
1
star
22

DirectFerries

Testing Old MVC Asp.net C# ways.
JavaScript
1
star
23

BGLWebApiMvcWeatherAndLocation

JavaScript
1
star
24

RobotsInSpace

Robots In Space Uses Angular 8.2.29 and Jquery Typescript and Javascript on the front end while .net Core 3.1 C# and TDD, Moq, Inversion Of Control and AutoMapper on the backend. Patterns: MVC and Command Pattern as well as SOLID
CSS
1
star
25

SiteKitTest

Test using TDD, ASP.net MVC 5 C#, Unit Of Work, Repository Pattern, Entity Framework 6.2, Razor View, DB and Code First Database generations. Due to time constraints, haven't configured IoC as this takes time and testing, other repositories show IoC when serious projects with enough time alloted are at stake.
JavaScript
1
star
26

ContactsSinglePageApp

Responsive, ASP.net MVC C#, JQuery Ajax, Web Api V1, XML Data Store and javascript Single page application
C#
1
star
27

SimbaToursEastAfricaV2

Simba Safari Tours East Africa is a site built with C# ASP.net Core 2.0, Angular 6, Typescript, JQuery, Web Api Core, Entity Framework Core, all pre-release versions. HTML5, CSS3 and C# MVC 6 .net core
C#
1
star
28

EntertainmentTicketMasterV2

Entertainment Ticket Master Web API, MVC 5 ASP.net C#, Unity (IoC), UnitOfWork, Entity Framework 6, MSTest, Moq, Jquery, Ajax, Repository Pattern, Interface Segregation & Marker Pattern, Singleton & Factory Patterns, Unit of Work Patterns
JavaScript
1
star
29

RobotManipulationInSpace

Project to demonstrate TDD, Mock using Moq, C#, MsTest, with Robot Manipulation in Space of a set of Robots Controlled Remotely as a project perhaps Nasa would implement. ICommand Pattern, Dependency Injection, Solid Principles, Unit Testing using MSTest
C#
1
star
30

UniSAStratisBlockChainApp

UniSA Blockchain ProtoType app based on Strat CryptoCurrency, in ASP.net C# MVC 5, with all Repository Pattern, Unit Of Work, Solid Principles, Autofac IoC, NTier Archtecture, Entity Framework, Code First, SqlServer 2014 Express, JQuery, HTML5, JavaScript and Bootstrap CSS. Asynchronous calls to StratisFramewrork Api.
HTML
1
star
31

CEEEPortal

Product of University Of West London MVC 4.0 Entity Framework 5.0, AJAX Jquery
C#
1
star