public async void Should_ThrowException_SetOptionsAsync() { var id = "id"; var animation = new MoveAlongRouteAnimation(id, _jsRuntime.Object); var options = new RoutePathAnimationOptions(); await Assert.ThrowsAnyAsync <NotSupportedException>(async() => await animation.SetOptionsAsync(options)); _jsRuntime.VerifyNoOtherCalls(); }
public async ValueTask <IMoveAlongRouteAnimation> MoveAlongRouteAsync(IEnumerable <RoutePoint> points, HtmlMarker pin, RoutePathAnimationOptions options = default) { _logger?.LogAzureMapsControlInfo(AzureMapLogEvent.AnimationService_Morph, "Calling MoveAlongRoute"); Require.NotNull(points, nameof(points)); Require.NotNull(pin, nameof(pin)); _logger?.LogAzureMapsControlDebug(AzureMapLogEvent.AnimationService_Morph, "Points", points); _logger?.LogAzureMapsControlDebug(AzureMapLogEvent.AnimationService_Morph, "Pin", pin); _logger?.LogAzureMapsControlDebug(AzureMapLogEvent.AnimationService_SetCoordinates, "Options", options); var animation = new MoveAlongRouteAnimation(Guid.NewGuid().ToString(), _jsRuntime); await _jsRuntime.InvokeVoidAsync(Constants.JsConstants.Methods.Animation.MoveAlongRoute.ToAnimationNamespace(), animation.Id, points, null, pin.Id, options); return(animation); }