.Net Knowledge Book : Web Development with Asp.Net MVC, Azure and Entity Framework by Patrick Desjardins

.Net Knowledge Book : Web Development with Asp.Net MVC, Azure and Entity Framework by Patrick Desjardins

Author:Patrick Desjardins [Desjardins, Patrick]
Language: eng
Format: epub
Publisher: UNKNOWN
Published: 2017-01-17T08:00:00+00:00


SPRINT 3 : IMPROVE THE TESTABILITY OF YOUR REPOSITORIES

This first week of the sprint 3 is aimed at the contests entity, more precisely how to get from the database active contests and inactive ones. This required modifying a little bit the Model Builder, the RunningContext, and TestBase.

Why all these modifications in the sprint 3? Mostly because to test the repository with the contest we need to have more than only one contest in the database, and depending on the test we want to have different contests. For example, we may want to have a contest with a starting and ending date before the testing date. I have said “testing time” and not “current time.” This is important and this is why in this sprint the Model Builder has changed. Now, the builder has access to the running contest. This is why Model Builder is not anymore static and it takes in its constructor the IRunningContext.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.