Created
March 29, 2017 10:19
-
-
Save eamonnmcevoy/b08abf35811a67ccf53313eb96e7bb08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TesableResultGenerator : ResultGenerator | |
{ | |
private IUserService _userService; | |
private IResultService _resultService; | |
private DateTime _dateTime; | |
public TestableResultGenerator(IUserService userService, IResultService resultService, DateTime dateTime) | |
: base() { | |
_userService = userService; | |
_resultService = resultService; | |
_dateTime = dateTime; | |
} | |
protected override IUserService GetUserService() | |
{ | |
return _userService; | |
} | |
protected override IResultService GetResultsService() | |
{ | |
return _resultsService; | |
} | |
protected override DateTime GetNow() | |
{ | |
return _dateTime; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment