示例#1
0
        //// ----------------------------------------------------------------------------------------------------------

        public HomeController(IFizzBuzzRepository fizzBuzzRepository)
        {
            if (fizzBuzzRepository == null)
            {
                throw new ArgumentNullException("fizzBuzzRepository");
            }

            this.fizzBuzzRepository = fizzBuzzRepository;
            this.PageSize           = 10;
        }
示例#2
0
        public void Constructor_FizzBuzzRepositoryIsNull_ExpectArgumentNullException()
        {
            // Arrange
            IFizzBuzzRepository fizzBuzzRepository = null;

            // Act
            var controller = new HomeController(fizzBuzzRepository);

            // Assert
        }
示例#3
0
 public FizzBuzzService(IFizzBuzzRepository fizzBuzzRepository)
 {
     this.fizzBuzzRepository = fizzBuzzRepository;
 }
示例#4
0
 public FizzBuzzController(IFizzBuzzRepository IFizzBuzzRepository)
 {
     _IFizzBuzzRepository = IFizzBuzzRepository;
 }