IEnumerator Start() { while (!physics.Initialized) yield return null; _rotation = new RotationService(computeRotation, physics.Velocities, physics.Lifes, physics.constants.radius, angularSpeedRange); }
IEnumerator Start() { while (!physics.Initialized) { yield return(null); } _rotation = new RotationService(computeRotation, physics.Velocities, physics.Lifes, physics.constants.radius, angularSpeedRange); }
public async Task get_all_async_should_invoke_get_all_async_on_rotation_repository() { var repositoryMock = new Mock <IRotationRepository>(); var mapperMock = new Mock <IMapper>(); var rotationService = new RotationService(repositoryMock.Object, mapperMock.Object); await rotationService.GetAllAsync(); repositoryMock.Verify(x => x.GetAllAsync(), Times.Once()); }