예제 #1
0
 IEnumerator Start()
 {
     while (!physics.Initialized)
         yield return null;
     _rotation = new RotationService(computeRotation, physics.Velocities, physics.Lifes,
                                     physics.constants.radius, angularSpeedRange);
 }
예제 #2
0
 IEnumerator Start()
 {
     while (!physics.Initialized)
     {
         yield return(null);
     }
     _rotation = new RotationService(computeRotation, physics.Velocities, physics.Lifes,
                                     physics.constants.radius, angularSpeedRange);
 }
예제 #3
0
        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());
        }