public void SetUp()
 {
     _display        = Substitute.For <IDisplay>();
     _powerTube      = Substitute.For <IPowerTube>();
     _userInterface  = Substitute.For <IUserInterface>();
     _sut            = new Timer();
     _cookController = new CookController(_sut, _display, _powerTube, _userInterface);
 }
        public void Setup()
        {
            _output    = Substitute.For <IOutput>();
            _ui        = Substitute.For <IUserInterface>();
            _display   = Substitute.For <IDisplay>();
            _powerTube = Substitute.For <IPowerTube>();

            _timer = new Timer();

            _tlm = new CookController(_timer, _display, _powerTube, _ui);
        }
Esempio n. 3
0
        public void SetUp()
        {
            #region Substitutes for paramaters for UserInterface

            _display = Substitute.For <IDisplay>();

            _powerTube = Substitute.For <IPowerTube>();

            _userInterface = Substitute.For <IUserInterface>();

            #endregion

            //Used for test
            _timer          = new Timer();
            _cookController = new CookController(_timer, _display, _powerTube, _userInterface);
        }
 public void Setup()
 {
     uut = new Timer();
 }