private PlayerController GetControllerMock(IGunController gunController)
        {
            var motor = Substitute.For <PlayerController>();

            motor.SetGunController(gunController);
            return(motor);
        }
Exemple #2
0
        private SpaceshipController GetControllerMock(IGunController gunController)
        {
            var motor = Substitute.For <SpaceshipController> ();

            motor.CanFire().Returns(true);
            motor.SetGunController(gunController);
            return(motor);
        }
Exemple #3
0
 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;
 }
 public void SetGunController(IGunController gunController)
 {
     this.gunController = gunController;
 }