private PlayerController GetControllerMock(IGunController gunController) { var motor = Substitute.For <PlayerController>(); motor.SetGunController(gunController); return(motor); }
private SpaceshipController GetControllerMock(IGunController gunController) { var motor = Substitute.For <SpaceshipController> (); motor.CanFire().Returns(true); motor.SetGunController(gunController); return(motor); }
public void SetGunController(IGunController gunController) { this.gunController = gunController; }
private SpaceshipController GetControllerMock( IGunController gunController ) { var motor = Substitute.For<SpaceshipController> (); motor.CanFire ().Returns (true); motor.SetGunController (gunController); return motor; }
private PlayerController GetControllerMock( IGunController gunController ) { var motor = Substitute.For<PlayerController>(); motor.SetGunController (gunController); return motor; }