public void Init()
        {
            _random = Substitute.For <IRandom>();
            _random.Range(Arg.Any <int>(), Arg.Any <int>()).Returns(0);

            _deviceInfo = Substitute.For <IDeviceInfo>();

            _defuserCounter = new DefuserCounter();

            _allPlayers = Substitute.For <AllPlayers>();
            _allPlayers.GetAll().Returns(new List <Player>().AsReadOnly());

            _defusingState = new DefusingState(
                Substitute.For <IDefusingTime>(),
                Substitute.For <IDefusingTimerUpdatedListener>(),
                Substitute.For <IDefuseFailedListener>());

            _allBombs = Substitute.For <AllBombs>(_random, new IBomb[0], _deviceInfo);

            _newDefuseAttemptSetListener = Substitute.For <INewDefuseAttemptSetListener>();

            _setNewDefuseAttempt = new SetNewDefuseAttempt(
                _random, _allPlayers, _allBombs, _defusingState, _defuserCounter, _newDefuseAttemptSetListener);
        }
Beispiel #2
0
 public InitDefusing(DefusingState defusingState)
 {
     _defusingState = defusingState;
 }
 public AnalyticsSubmitter(DefusingState defusingState, AllPlayers allPlayers)
 {
     _defusingState = defusingState;
     _allPlayers    = allPlayers;
 }