public async void Should_ThrowException_SetOptionsAsync() { var id = "id"; var animation = new FlowingDashedLineAnimation(id, _jsRuntime.Object); var options = new MovingDashLineOptions(); await Assert.ThrowsAnyAsync <NotSupportedException>(async() => await animation.SetOptionsAsync(options)); _jsRuntime.VerifyNoOtherCalls(); }
public async ValueTask <IFlowingDashedLineAnimation> FlowingDashedLineAsync(LineLayer layer, MovingDashLineOptions options = default) { _logger?.LogAzureMapsControlInfo(AzureMapLogEvent.AnimationService_FlowingDashedLine, "Calling Snakeline"); Require.NotNull(layer, nameof(layer)); _logger?.LogAzureMapsControlDebug(AzureMapLogEvent.AnimationService_FlowingDashedLine, "LayerId", layer.Id); _logger?.LogAzureMapsControlDebug(AzureMapLogEvent.AnimationService_FlowingDashedLine, "Options", options); var animation = new FlowingDashedLineAnimation(Guid.NewGuid().ToString(), _jsRuntime); await _jsRuntime.InvokeVoidAsync(Constants.JsConstants.Methods.Animation.FlowingDashedLine.ToAnimationNamespace(), animation.Id, layer.Id, options); return(animation); }