ChampionRepository creation and test harness
Let ChampionRepository implement IDisposable
ShouldReturnChampionById passes
Ability specification added, and ShouldReturnAbilityById passes
ShouldReturnChampionByNameRegardlessOfCase passes. You have no idea how hard it is to set up Find() for IRepository.
Moved the complicated sharp repository moq-ing to it's own static class
Added our Ioc implementation with StructureMap.
OK, so I added GetAllChampions() (and it's accompanying test), added ChampionController, and I set up ChampionController to return all names of the champions on Index() (and tested it)
Lowercase urls are important huh - this really shouldn't even be in this branch lol
Adding some Ioc changes so we can work with mvc's retarded ioc system
Did I mention what a piece of shit MVC 4 IoC is? Yeah it's a piece of shit. Either way, it works now.
List the champion names in the view
There, that should finish the sharp repository shebang - now you can pass in a constructor for the sharp repository configuration, but if you don't (you invoke zero-argument constructor), you will use a default Xml configuration instead.
Adding some seeding data when in debug mode so we can test the views. Also, I'm setting the setter for Champion to internal for now.
Added most of the base statistics that we are interested in for Champions. I think.
Let's start setting up the single champion view, shall we?
We can now get champions by their Id, too. Also, I configured routes - champions are accessed by /champion/{id} or /champion/{name}.
Added ability fields to a champion. Wow, a champion has a lot of variables.
Change some properties on Champion object to public and I moved the data seeder to the champion controller in the main project
Missed a colon