//// ---------------------------------------------------------------------------------------------------------- public HomeController(IFizzBuzzRepository fizzBuzzRepository) { if (fizzBuzzRepository == null) { throw new ArgumentNullException("fizzBuzzRepository"); } this.fizzBuzzRepository = fizzBuzzRepository; this.PageSize = 10; }
public void Constructor_FizzBuzzRepositoryIsNull_ExpectArgumentNullException() { // Arrange IFizzBuzzRepository fizzBuzzRepository = null; // Act var controller = new HomeController(fizzBuzzRepository); // Assert }
public FizzBuzzService(IFizzBuzzRepository fizzBuzzRepository) { this.fizzBuzzRepository = fizzBuzzRepository; }
public FizzBuzzController(IFizzBuzzRepository IFizzBuzzRepository) { _IFizzBuzzRepository = IFizzBuzzRepository; }