public void SetUp() { controllerPointsView = Substitute.For <IControllerPointsView>(); playerPrefsAdapter = Substitute.For <IPlayerPrefsAdapter>(); }
public LogicPointsPlayer(IControllerPointsView view, IPlayerPrefsAdapter playerPrefsAdapter) { this.view = view; this.playerPrefsAdapter = playerPrefsAdapter; CheckPoints(); }
// Use this for initialization void Start() { playerPrefsAdapter = GetComponent <PlayerPrefsStrategy>().GetPlayerPrefsAdapter(); logicPointsPlayer = new LogicPointsPlayer(this, playerPrefsAdapter); }