diff --git a/samples/AzureMapsControl.Sample/Components/Pages/Demos/ClusterAggregates.razor b/samples/AzureMapsControl.Sample/Components/Pages/Demos/ClusterAggregates.razor
index a1b030bf..f640e6e0 100644
--- a/samples/AzureMapsControl.Sample/Components/Pages/Demos/ClusterAggregates.razor
+++ b/samples/AzureMapsControl.Sample/Components/Pages/Demos/ClusterAggregates.razor
@@ -60,6 +60,9 @@
if(cluster is not null && cluster.Properties.ContainsKey("cluster"))
{
+ var clusterLeaves = await _datasource.GetClusterLeavesAsync(int.Parse(cluster.Id), 10, 0);
+ var clusterZoomExpansionLevel = await _datasource.GetClusterExpansionZoomAsync(int.Parse(cluster.Id));
+
var html = string.Join(string.Empty,
new[] {
"
",
diff --git a/src/AzureMapsControl.Components/Atlas/Feature.cs b/src/AzureMapsControl.Components/Atlas/Feature.cs
index e0da254d..3cea838e 100644
--- a/src/AzureMapsControl.Components/Atlas/Feature.cs
+++ b/src/AzureMapsControl.Components/Atlas/Feature.cs
@@ -41,7 +41,10 @@ public TGeometry Geometry
}
set {
_geometry = value;
- _geometry.Id = Id;
+ if (_geometry != null)
+ {
+ _geometry.Id = Id;
+ }
}
}
diff --git a/src/AzureMapsControl.Components/Atlas/Shape.cs b/src/AzureMapsControl.Components/Atlas/Shape.cs
index be95385c..4dcaf54b 100644
--- a/src/AzureMapsControl.Components/Atlas/Shape.cs
+++ b/src/AzureMapsControl.Components/Atlas/Shape.cs
@@ -34,7 +34,10 @@ public TGeometry Geometry
}
set {
_geometry = value;
- _geometry.Id = Id;
+ if (_geometry != null)
+ {
+ _geometry.Id = Id;
+ }
}
}
diff --git a/src/AzureMapsControl.Components/Constants/Constants.cs b/src/AzureMapsControl.Components/Constants/Constants.cs
index fa1929d9..07a87bf8 100644
--- a/src/AzureMapsControl.Components/Constants/Constants.cs
+++ b/src/AzureMapsControl.Components/Constants/Constants.cs
@@ -111,6 +111,8 @@ internal static class Source
internal static class Datasource
{
internal const string GetShapes = "getShapes";
+ internal const string GetClusterLeaves = "getClusterLeaves";
+ internal const string GetClusterExpansionZoom = "getClusterExpansionZoom";
}
internal static class GriddedDatasource
diff --git a/src/AzureMapsControl.Components/Data/DataSource.cs b/src/AzureMapsControl.Components/Data/DataSource.cs
index 038dd26c..f096b6cd 100644
--- a/src/AzureMapsControl.Components/Data/DataSource.cs
+++ b/src/AzureMapsControl.Components/Data/DataSource.cs
@@ -92,6 +92,44 @@ public async ValueTask>> GetShapesAsync()
return await JSRuntime.InvokeAsync>>(Constants.JsConstants.Methods.Datasource.GetShapes.ToDatasourceNamespace(), Id);
}
+ ///
+ /// Retrieves shapes that are within the cluster.
+ ///
+ /// The ID of the cluster
+ /// The maximum number of features to return
+ /// The number of shapes to skip. Allows you to page through the shapes in the cluster
+ /// Shapes that are within the cluster
+ public async ValueTask>> GetClusterLeavesAsync(int clusterId, int limit, int offset)
+ {
+ Logger?.LogAzureMapsControlInfo(AzureMapLogEvent.DataSource_GetClusterLeavesAsync, "DataSource - GetClusterLeavesAsync");
+ Logger?.LogAzureMapsControlDebug(AzureMapLogEvent.DataSource_GetClusterLeavesAsync, $"Id: {Id}");
+ Logger?.LogAzureMapsControlDebug(AzureMapLogEvent.DataSource_GetClusterLeavesAsync, $"ClusterId: {clusterId}");
+ Logger?.LogAzureMapsControlDebug(AzureMapLogEvent.DataSource_GetClusterLeavesAsync, $"Limit: {limit}");
+ Logger?.LogAzureMapsControlDebug(AzureMapLogEvent.DataSource_GetClusterLeavesAsync, $"Offset: {offset}");
+
+ EnsureJsRuntimeExists();
+ EnsureNotDisposed();
+
+ return await JSRuntime.InvokeAsync>>(Constants.JsConstants.Methods.Datasource.GetClusterLeaves.ToDatasourceNamespace(), Id, clusterId, limit, offset);
+ }
+
+ ///
+ /// Calculates a zoom level at which the cluster starts expanding or break apart.
+ ///
+ /// ID of the cluster
+ /// Zoom level at which the cluster starts expanding or break apart
+ public async ValueTask GetClusterExpansionZoomAsync(int clusterId)
+ {
+ Logger?.LogAzureMapsControlInfo(AzureMapLogEvent.DataSource_GetClusterLeavesAsync, "DataSource - GetClusterExpansionZoomAsync");
+ Logger?.LogAzureMapsControlDebug(AzureMapLogEvent.DataSource_GetClusterLeavesAsync, $"Id: {Id}");
+ Logger?.LogAzureMapsControlDebug(AzureMapLogEvent.DataSource_GetClusterLeavesAsync, $"ClusterId: {clusterId}");
+
+ EnsureJsRuntimeExists();
+ EnsureNotDisposed();
+
+ return await JSRuntime.InvokeAsync(Constants.JsConstants.Methods.Datasource.GetClusterExpansionZoom.ToDatasourceNamespace(), Id, clusterId);
+ }
+
internal void DispatchEvent(DataSourceEventArgs eventArgs)
{
switch (eventArgs.Type)
diff --git a/src/AzureMapsControl.Components/Logger/Extensions.cs b/src/AzureMapsControl.Components/Logger/Extensions.cs
index cfabd24b..7aa33818 100644
--- a/src/AzureMapsControl.Components/Logger/Extensions.cs
+++ b/src/AzureMapsControl.Components/Logger/Extensions.cs
@@ -69,6 +69,7 @@ internal enum AzureMapLogEvent
Source_GetOptionsAsync = 7005,
Source_SetOptionsAsync = 7006,
DataSource_GetShapesAsync = 7100,
+ DataSource_GetClusterLeavesAsync = 7101,
GriddedDataSource_GetCellChildren = 7200,
GriddedDataSource_GetGridCells = 7201,
GriddedDataSource_GetPoints = 7202,
diff --git a/src/AzureMapsControl.Components/typescript/sources/datasource.ts b/src/AzureMapsControl.Components/typescript/sources/datasource.ts
index 90cefd2b..fb23d5b5 100644
--- a/src/AzureMapsControl.Components/typescript/sources/datasource.ts
+++ b/src/AzureMapsControl.Components/typescript/sources/datasource.ts
@@ -1,6 +1,6 @@
import * as azmaps from 'azure-maps-control';
import { Core } from '../core/core';
-import { Shape } from '../geometries/geometry';
+import { Shape, Feature } from '../geometries/geometry';
export class Datasource {
@@ -9,4 +9,31 @@ export class Datasource {
return shapes?.map(shape => Core.getSerializableShape(shape));
}
+ public static async getClusterLeaves(datasourceId: string, clusterId: number, limit: number, offset: number): Promise<(Shape | Feature)[]> {
+ return new Promise(resolve => {
+ (Core.getMap().sources.getById(datasourceId) as azmaps.source.DataSource).getClusterLeaves(clusterId, limit, offset).then(clusterLeaves => {
+
+ const resultLeaves = clusterLeaves.map(leaf => {
+ if (leaf instanceof azmaps.Shape) {
+ return Core.getSerializableShape(leaf);
+ }
+
+ if (leaf instanceof azmaps.data.Feature) {
+ return Core.getSerializableFeature(leaf);
+ }
+ });
+
+ resolve(resultLeaves);
+ });
+ });
+ }
+
+ public static async getClusterExpansionZoom(datasourceId: string, clusterId: number): Promise {
+ return new Promise(resolve => {
+ (Core.getMap().sources.getById(datasourceId) as azmaps.source.DataSource).getClusterExpansionZoom(clusterId).then(zoom => {
+ resolve(zoom);
+ });
+ });
+ }
+
}
\ No newline at end of file
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/Animation.cs b/tests/AzureMapsControl.Components.Tests/Animations/Animation.cs
index 98d89a2b..fc2cf2c7 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/Animation.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/Animation.cs
@@ -2,6 +2,7 @@
{
using System;
using System.Collections.Generic;
+ using System.Threading.Tasks;
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Runtime;
@@ -115,7 +116,7 @@ public void Should_Create(string animationType)
[Theory]
[MemberData(nameof(AllAnimationsTypes))]
- public async void Should_DisposeAsync(string animationType)
+ public async Task Should_DisposeAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -128,7 +129,7 @@ public async void Should_DisposeAsync(string animationType)
[Theory]
[MemberData(nameof(AllAnimationsTypes))]
- public async void Should_ThrowAnimationDisposedException_DisposeAsync(string animationType)
+ public async Task Should_ThrowAnimationDisposedException_DisposeAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -141,7 +142,7 @@ public async void Should_ThrowAnimationDisposedException_DisposeAsync(string ani
[Theory]
[MemberData(nameof(AllPauseAnimationsTypes))]
- public async void Should_PauseAsync(string animationType)
+ public async Task Should_PauseAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -153,7 +154,7 @@ public async void Should_PauseAsync(string animationType)
[Theory]
[MemberData(nameof(AllPauseAnimationsTypes))]
- public async void Should_ThrowAnimationDisposedException_PauseAsync(string animationType)
+ public async Task Should_ThrowAnimationDisposedException_PauseAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -166,7 +167,7 @@ public async void Should_ThrowAnimationDisposedException_PauseAsync(string anima
[Theory]
[MemberData(nameof(AllPlayAnimationsTypes))]
- public async void Should_PlayAsync(string animationType)
+ public async Task Should_PlayAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -178,7 +179,7 @@ public async void Should_PlayAsync(string animationType)
[Theory]
[MemberData(nameof(AllPlayAnimationsTypes))]
- public async void Should_ThrowAnimationDisposedException_PlayAsync(string animationType)
+ public async Task Should_ThrowAnimationDisposedException_PlayAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -191,7 +192,7 @@ public async void Should_ThrowAnimationDisposedException_PlayAsync(string animat
[Theory]
[MemberData(nameof(AllResetAnimationsTypes))]
- public async void Should_ResetAsync(string animationType)
+ public async Task Should_ResetAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -203,7 +204,7 @@ public async void Should_ResetAsync(string animationType)
[Theory]
[MemberData(nameof(AllResetAnimationsTypes))]
- public async void Should_ThrowAnimationDisposedException_ResetAsync(string animationType)
+ public async Task Should_ThrowAnimationDisposedException_ResetAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -216,7 +217,7 @@ public async void Should_ThrowAnimationDisposedException_ResetAsync(string anima
[Theory]
[MemberData(nameof(AllSeekAnimationsTypes))]
- public async void Should_SeekAsync(string animationType)
+ public async Task Should_SeekAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -229,7 +230,7 @@ public async void Should_SeekAsync(string animationType)
[Theory]
[MemberData(nameof(AllSeekAnimationsTypes))]
- public async void Should_ThrowAnimationDisposedException_SeekAsync(string animationType)
+ public async Task Should_ThrowAnimationDisposedException_SeekAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -243,7 +244,7 @@ public async void Should_ThrowAnimationDisposedException_SeekAsync(string animat
[Theory]
[MemberData(nameof(AllStopAnimationsTypes))]
- public async void Should_StopAsync(string animationType)
+ public async Task Should_StopAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
@@ -255,7 +256,7 @@ public async void Should_StopAsync(string animationType)
[Theory]
[MemberData(nameof(AllStopAnimationsTypes))]
- public async void Should_ThrowAnimationDisposedException_StopAsync(string animationType)
+ public async Task Should_ThrowAnimationDisposedException_StopAsync(string animationType)
{
var id = "id";
var animation = AnimationFactory.GetAnimation(animationType, id, _jsRuntime.Object);
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/AnimationService.cs b/tests/AzureMapsControl.Components.Tests/Animations/AnimationService.cs
index 80ac457b..35db7777 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/AnimationService.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/AnimationService.cs
@@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+ using System.Threading.Tasks;
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Animations.Options;
@@ -33,7 +34,7 @@ public class AnimationServiceTests
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_Snakeline_Async(bool disposeOnComplete)
+ public async Task Should_Snakeline_Async(bool disposeOnComplete)
{
var line = new LineString();
var source = new DataSource();
@@ -51,7 +52,7 @@ public async void Should_Snakeline_Async(bool disposeOnComplete)
}
[Fact]
- public async void Should_ThrowArgumentNullException_Snakeline_LineCaseAsync()
+ public async Task Should_ThrowArgumentNullException_Snakeline_LineCaseAsync()
{
var source = new DataSource();
var options = new SnakeLineAnimationOptions();
@@ -62,7 +63,7 @@ public async void Should_ThrowArgumentNullException_Snakeline_LineCaseAsync()
}
[Fact]
- public async void Should_ThrowArgumentNullException_Snakeline_SourceCaseAsync()
+ public async Task Should_ThrowArgumentNullException_Snakeline_SourceCaseAsync()
{
var line = new LineString();
var source = new DataSource();
@@ -76,7 +77,7 @@ public async void Should_ThrowArgumentNullException_Snakeline_SourceCaseAsync()
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_MoveAlongPath_LineStringAndPoint_DisposeOnComplete_Async(bool disposeOnComplete)
+ public async Task Should_MoveAlongPath_LineStringAndPoint_DisposeOnComplete_Async(bool disposeOnComplete)
{
var line = new LineString();
var lineSource = new DataSource();
@@ -96,7 +97,7 @@ public async void Should_MoveAlongPath_LineStringAndPoint_DisposeOnComplete_Asyn
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_PathCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_PathCaseAsync()
{
var lineSource = new DataSource();
var pin = new Point();
@@ -109,7 +110,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_PathCaseAsync(
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_PathSourceCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_PathSourceCaseAsync()
{
var line = new LineString();
var pin = new Point();
@@ -122,7 +123,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_PathSourceCase
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_PinCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_PinCaseAsync()
{
var line = new LineString();
var lineSource = new DataSource();
@@ -135,7 +136,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_PinCaseAsync()
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_PinSourceCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_PinSourceCaseAsync()
{
var line = new LineString();
var lineSource = new DataSource();
@@ -150,7 +151,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_PinSourceCaseA
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_MoveAlongPath_LineStringAndHtmlMarker_Async(bool disposeOnComplete)
+ public async Task Should_MoveAlongPath_LineStringAndHtmlMarker_Async(bool disposeOnComplete)
{
var line = new LineString();
var lineSource = new DataSource();
@@ -169,7 +170,7 @@ public async void Should_MoveAlongPath_LineStringAndHtmlMarker_Async(bool dispos
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_LineStringAndHtmlMarker_PathCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_LineStringAndHtmlMarker_PathCaseAsync()
{
var lineSource = new DataSource();
var pin = new HtmlMarker(new HtmlMarkerOptions());
@@ -181,7 +182,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_LineStringAndH
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_LineStringAndHtmlMarker_PathSourceCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_LineStringAndHtmlMarker_PathSourceCaseAsync()
{
var line = new LineString();
var pin = new HtmlMarker(new HtmlMarkerOptions());
@@ -193,7 +194,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_LineStringAndH
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_LineStringAndHtmlMarker_PinCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_LineStringAndHtmlMarker_PinCaseAsync()
{
var line = new LineString();
var lineSource = new DataSource();
@@ -207,7 +208,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_LineStringAndH
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_MoveAlongPath_PositionsAndPoint_Async(bool disposeOnComplete)
+ public async Task Should_MoveAlongPath_PositionsAndPoint_Async(bool disposeOnComplete)
{
var line = new Position[] { new Position() };
var pin = new Point();
@@ -226,7 +227,7 @@ public async void Should_MoveAlongPath_PositionsAndPoint_Async(bool disposeOnCom
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndPoint_NullLineCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndPoint_NullLineCaseAsync()
{
var pin = new Point();
var pinSource = new DataSource();
@@ -238,7 +239,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndPo
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndPoint_PinCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndPoint_PinCaseAsync()
{
var line = new Position[] { new Position() };
var pinSource = new DataSource();
@@ -250,7 +251,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndPo
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndPoint_PinSourceAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndPoint_PinSourceAsync()
{
var line = new Position[] { new Position() };
var pin = new Point();
@@ -264,7 +265,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndPo
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_MoveAlongPath_PositionsAndHtmlMarkers_Async(bool disposeOnComplete)
+ public async Task Should_MoveAlongPath_PositionsAndHtmlMarkers_Async(bool disposeOnComplete)
{
var line = new Position[] { new Position() };
var pin = new HtmlMarker(new HtmlMarkerOptions());
@@ -282,7 +283,7 @@ public async void Should_MoveAlongPath_PositionsAndHtmlMarkers_Async(bool dispos
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndHtmlMarkers_NullLineCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndHtmlMarkers_NullLineCaseAsync()
{
var pin = new HtmlMarker(new HtmlMarkerOptions());
var options = new MoveAlongPathAnimationOptions();
@@ -293,7 +294,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndHt
}
[Fact]
- public async void Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndHtmlMarkers_PinCaseAsync()
+ public async Task Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndHtmlMarkers_PinCaseAsync()
{
var line = new Position[] { new Position() };
var options = new MoveAlongPathAnimationOptions();
@@ -304,7 +305,7 @@ public async void Should_ThrowArgumentNullException_MoveAlongPath_PositionsAndHt
}
[Fact]
- public async void Should_FlowingDashedLine_Async()
+ public async Task Should_FlowingDashedLine_Async()
{
var layer = new LineLayer();
var options = new MovingDashLineOptions();
@@ -318,7 +319,7 @@ public async void Should_FlowingDashedLine_Async()
}
[Fact]
- public async void Should_FlowingDashedLine_ThrowArgumentNullExceptionAsync()
+ public async Task Should_FlowingDashedLine_ThrowArgumentNullExceptionAsync()
{
var options = new MovingDashLineOptions();
@@ -330,7 +331,7 @@ public async void Should_FlowingDashedLine_ThrowArgumentNullExceptionAsync()
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_DropMarkers_Async(bool disposeOnComplete)
+ public async Task Should_DropMarkers_Async(bool disposeOnComplete)
{
var map = new Map("id", htmlMarkerInvokeHelper: new HtmlMarkerInvokeHelper(null));
_mapServiceMock.Setup(mapService => mapService.Map).Returns(map);
@@ -361,7 +362,7 @@ public async void Should_DropMarkers_Async(bool disposeOnComplete)
}
[Fact]
- public async void Should_DropMarkers_ThrowArgumentNullExceptionAsync()
+ public async Task Should_DropMarkers_ThrowArgumentNullExceptionAsync()
{
var height = 1m;
var options = new DropMarkersAnimationOptions();
@@ -373,7 +374,7 @@ public async void Should_DropMarkers_ThrowArgumentNullExceptionAsync()
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_DropMarker_Async(bool disposeOnComplete)
+ public async Task Should_DropMarker_Async(bool disposeOnComplete)
{
var map = new Map("id", htmlMarkerInvokeHelper: new HtmlMarkerInvokeHelper(null));
_mapServiceMock.Setup(mapService => mapService.Map).Returns(map);
@@ -402,7 +403,7 @@ public async void Should_DropMarker_Async(bool disposeOnComplete)
}
[Fact]
- public async void Should_DropMarker_ThrowArgumentNullExceptionAsync()
+ public async Task Should_DropMarker_ThrowArgumentNullExceptionAsync()
{
var height = 1m;
var options = new DropMarkersAnimationOptions();
@@ -412,7 +413,7 @@ public async void Should_DropMarker_ThrowArgumentNullExceptionAsync()
}
[Fact]
- public async void Should_GroupAnimations_Async()
+ public async Task Should_GroupAnimations_Async()
{
var animation1 = new SnakeLineAnimation("id", _jsRuntimeMock.Object);
var animation2 = new DropMarkersAnimation("markerAnimation", _jsRuntimeMock.Object);
@@ -433,7 +434,7 @@ public async void Should_GroupAnimations_Async()
}
[Fact]
- public async void Should_GroupAnimations_ThrowArgumentNullExceptionAsync()
+ public async Task Should_GroupAnimations_ThrowArgumentNullExceptionAsync()
{
var options = new GroupAnimationOptions();
@@ -445,7 +446,7 @@ public async void Should_GroupAnimations_ThrowArgumentNullExceptionAsync()
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_DropMultiple_Async(bool disposeOnComplete)
+ public async Task Should_DropMultiple_Async(bool disposeOnComplete)
{
var point = new Point();
var point2 = new Point();
@@ -466,7 +467,7 @@ public async void Should_DropMultiple_Async(bool disposeOnComplete)
}
[Fact]
- public async void Should_DropMultiple_ThrowArgumentNullException_PointsCaseAsync()
+ public async Task Should_DropMultiple_ThrowArgumentNullException_PointsCaseAsync()
{
IEnumerable points = null;
var datasource = new DataSource();
@@ -479,7 +480,7 @@ public async void Should_DropMultiple_ThrowArgumentNullException_PointsCaseAsync
}
[Fact]
- public async void Should_DropMultiple_ThrowArgumentNullException_SourceCaseAsync()
+ public async Task Should_DropMultiple_ThrowArgumentNullException_SourceCaseAsync()
{
var point = new Point();
var point2 = new Point();
@@ -495,7 +496,7 @@ public async void Should_DropMultiple_ThrowArgumentNullException_SourceCaseAsync
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_Drop_Async(bool disposeOnComplete)
+ public async Task Should_Drop_Async(bool disposeOnComplete)
{
var point = new Point();
var datasource = new DataSource();
@@ -521,7 +522,7 @@ public async void Should_Drop_Async(bool disposeOnComplete)
}
[Fact]
- public async void Should_Drop_ThrowArgumentNullException_PointsCaseAsync()
+ public async Task Should_Drop_ThrowArgumentNullException_PointsCaseAsync()
{
Point points = null;
var datasource = new DataSource();
@@ -534,7 +535,7 @@ public async void Should_Drop_ThrowArgumentNullException_PointsCaseAsync()
}
[Fact]
- public async void Should_Drop_ThrowArgumentNullException_SourceCaseAsync()
+ public async Task Should_Drop_ThrowArgumentNullException_SourceCaseAsync()
{
var point = new Point();
var options = new DropAnimationOptions();
@@ -548,7 +549,7 @@ public async void Should_Drop_ThrowArgumentNullException_SourceCaseAsync()
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_SetCoordinatesAsync(bool disposeOnComplete)
+ public async Task Should_SetCoordinatesAsync(bool disposeOnComplete)
{
var point = new Point();
var datasource = new DataSource();
@@ -567,7 +568,7 @@ public async void Should_SetCoordinatesAsync(bool disposeOnComplete)
}
[Fact]
- public async void Should_SetCoordinates_ThrowArgumentNullException_PointCaseAsync()
+ public async Task Should_SetCoordinates_ThrowArgumentNullException_PointCaseAsync()
{
var datasource = new DataSource();
var options = new SetCoordinatesAnimationOptions();
@@ -579,7 +580,7 @@ public async void Should_SetCoordinates_ThrowArgumentNullException_PointCaseAsyn
}
[Fact]
- public async void Should_SetCoordinates_ThrowArgumentNullException_SourceCaseAsync()
+ public async Task Should_SetCoordinates_ThrowArgumentNullException_SourceCaseAsync()
{
var point = new Point();
var options = new SetCoordinatesAnimationOptions();
@@ -591,7 +592,7 @@ public async void Should_SetCoordinates_ThrowArgumentNullException_SourceCaseAsy
}
[Fact]
- public async void Should_SetCoordinates_ThrowArgumentNullException_NewCoordinatesCaseAsync()
+ public async Task Should_SetCoordinates_ThrowArgumentNullException_NewCoordinatesCaseAsync()
{
var point = new Point();
var datasource = new DataSource();
@@ -605,7 +606,7 @@ public async void Should_SetCoordinates_ThrowArgumentNullException_NewCoordinate
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_SetCoordinates_HtmlMarker_Async(bool disposeOnComplete)
+ public async Task Should_SetCoordinates_HtmlMarker_Async(bool disposeOnComplete)
{
var marker = new HtmlMarker(new HtmlMarkerOptions());
var options = new SetCoordinatesAnimationOptions {
@@ -623,7 +624,7 @@ public async void Should_SetCoordinates_HtmlMarker_Async(bool disposeOnComplete)
}
[Fact]
- public async void Should_SetCoordinates_HtmlMarker_ThrowArgumentNullException_PointCaseAsync()
+ public async Task Should_SetCoordinates_HtmlMarker_ThrowArgumentNullException_PointCaseAsync()
{
var options = new SetCoordinatesAnimationOptions();
var newCoordinates = new Position();
@@ -634,7 +635,7 @@ public async void Should_SetCoordinates_HtmlMarker_ThrowArgumentNullException_Po
}
[Fact]
- public async void Should_SetCoordinates_HtmlMarker_ThrowArgumentNullException_NewCoordinatesCaseAsync()
+ public async Task Should_SetCoordinates_HtmlMarker_ThrowArgumentNullException_NewCoordinatesCaseAsync()
{
var marker = new HtmlMarker(new HtmlMarkerOptions());
var options = new SetCoordinatesAnimationOptions();
@@ -647,7 +648,7 @@ public async void Should_SetCoordinates_HtmlMarker_ThrowArgumentNullException_Ne
[Theory]
[InlineData(true)]
[InlineData(false)]
- public async void Should_Morph_Async(bool disposeOnComplete)
+ public async Task Should_Morph_Async(bool disposeOnComplete)
{
var geometry = new Point();
var dataSource = new DataSource();
@@ -667,7 +668,7 @@ public async void Should_Morph_Async(bool disposeOnComplete)
}
[Fact]
- public async void Should_Morph_ThrowArgumentNullException_GeometryCaseAsync()
+ public async Task Should_Morph_ThrowArgumentNullException_GeometryCaseAsync()
{
var dataSource = new DataSource();
var newGeometry = new Polygon();
@@ -679,7 +680,7 @@ public async void Should_Morph_ThrowArgumentNullException_GeometryCaseAsync()
}
[Fact]
- public async void Should_Morph_ThrowArgumentNullException_SourceCaseAsync()
+ public async Task Should_Morph_ThrowArgumentNullException_SourceCaseAsync()
{
var geometry = new Point();
var newGeometry = new Polygon();
@@ -691,7 +692,7 @@ public async void Should_Morph_ThrowArgumentNullException_SourceCaseAsync()
}
[Fact]
- public async void Should_Morph_ThrowArgumentNullException_NewGeometryCaseAsync()
+ public async Task Should_Morph_ThrowArgumentNullException_NewGeometryCaseAsync()
{
var geometry = new Point();
var dataSource = new DataSource();
@@ -704,7 +705,7 @@ public async void Should_Morph_ThrowArgumentNullException_NewGeometryCaseAsync()
}
[Fact]
- public async void Should_MoveAlongRoute_Async()
+ public async Task Should_MoveAlongRoute_Async()
{
var routePoints = new List();
var dataSource = new DataSource();
@@ -720,7 +721,7 @@ public async void Should_MoveAlongRoute_Async()
}
[Fact]
- public async void Should_MoveAlongRoute_ThrowArgumentNullException_RoutePointsCaseAsync()
+ public async Task Should_MoveAlongRoute_ThrowArgumentNullException_RoutePointsCaseAsync()
{
var dataSource = new DataSource();
var pin = new Point();
@@ -732,7 +733,7 @@ public async void Should_MoveAlongRoute_ThrowArgumentNullException_RoutePointsCa
}
[Fact]
- public async void Should_MoveAlongRoute_ThrowArgumentNullException_PinCaseAsync()
+ public async Task Should_MoveAlongRoute_ThrowArgumentNullException_PinCaseAsync()
{
var routePoints = new List();
var dataSource = new DataSource();
@@ -744,7 +745,7 @@ public async void Should_MoveAlongRoute_ThrowArgumentNullException_PinCaseAsync(
}
[Fact]
- public async void Should_MoveAlongRoute_ThrowArgumentNullException_SourceCaseAsync()
+ public async Task Should_MoveAlongRoute_ThrowArgumentNullException_SourceCaseAsync()
{
var routePoints = new List();
var pin = new Point();
@@ -756,7 +757,7 @@ public async void Should_MoveAlongRoute_ThrowArgumentNullException_SourceCaseAsy
}
[Fact]
- public async void Should_MoveAlongRoute_HtmlMarker_Async()
+ public async Task Should_MoveAlongRoute_HtmlMarker_Async()
{
var routePoints = new List();
var pin = new HtmlMarker(new HtmlMarkerOptions());
@@ -771,7 +772,7 @@ public async void Should_MoveAlongRoute_HtmlMarker_Async()
}
[Fact]
- public async void Should_MoveAlongRoute_HtmlMarker_ThrowArgumentNullException_RoutePointsCaseAsync()
+ public async Task Should_MoveAlongRoute_HtmlMarker_ThrowArgumentNullException_RoutePointsCaseAsync()
{
var pin = new HtmlMarker(new HtmlMarkerOptions());
var options = new RoutePathAnimationOptions();
@@ -782,7 +783,7 @@ public async void Should_MoveAlongRoute_HtmlMarker_ThrowArgumentNullException_Ro
}
[Fact]
- public async void Should_MoveAlongRoute_HtmlMarker_ThrowArgumentNullException_PinCaseAsync()
+ public async Task Should_MoveAlongRoute_HtmlMarker_ThrowArgumentNullException_PinCaseAsync()
{
var routePoints = new List();
var pin = new HtmlMarker(new HtmlMarkerOptions());
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/DropAnimation.cs b/tests/AzureMapsControl.Components.Tests/Animations/DropAnimation.cs
index f58eab1a..53a7ed02 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/DropAnimation.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/DropAnimation.cs
@@ -1,5 +1,7 @@
namespace AzureMapsControl.Components.Tests.Animations
{
+ using System.Threading.Tasks;
+
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Animations.Options;
using AzureMapsControl.Components.Runtime;
@@ -12,7 +14,7 @@ public class DropAnimationTests
{
private readonly Mock _jsRuntime = new Mock();
[Fact]
- public async void Should_SetOptionsAsync()
+ public async Task Should_SetOptionsAsync()
{
var id = "id";
var animation = new DropAnimation(id, _jsRuntime.Object);
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/DropMarkersAnimation.cs b/tests/AzureMapsControl.Components.Tests/Animations/DropMarkersAnimation.cs
index 705d0982..478df909 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/DropMarkersAnimation.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/DropMarkersAnimation.cs
@@ -1,5 +1,6 @@
namespace AzureMapsControl.Components.Tests.Animations
{
+ using System.Threading.Tasks;
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Animations.Options;
@@ -13,7 +14,7 @@ public class DropMarkersAnimationTests
{
private readonly Mock _jsRuntime = new Mock();
[Fact]
- public async void Should_SetOptionsAsync()
+ public async Task Should_SetOptionsAsync()
{
var id = "id";
var animation = new DropMarkersAnimation(id, _jsRuntime.Object);
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/FlowingDashedLineAnimation.cs b/tests/AzureMapsControl.Components.Tests/Animations/FlowingDashedLineAnimation.cs
index e310189c..a9a6cb09 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/FlowingDashedLineAnimation.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/FlowingDashedLineAnimation.cs
@@ -1,6 +1,7 @@
namespace AzureMapsControl.Components.Tests.Animations
{
using System;
+ using System.Threading.Tasks;
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Animations.Options;
@@ -15,7 +16,7 @@ public class FlowingDashedLineAnimationTests
private readonly Mock _jsRuntime = new Mock();
[Fact]
- public async void Should_ThrowException_SeekAsync()
+ public async Task Should_ThrowException_SeekAsync()
{
var id = "id";
var animation = new FlowingDashedLineAnimation(id, _jsRuntime.Object);
@@ -25,7 +26,7 @@ public async void Should_ThrowException_SeekAsync()
}
[Fact]
- public async void Should_ThrowException_SetOptionsAsync()
+ public async Task Should_ThrowException_SetOptionsAsync()
{
var id = "id";
var animation = new FlowingDashedLineAnimation(id, _jsRuntime.Object);
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/GroupAnimation.cs b/tests/AzureMapsControl.Components.Tests/Animations/GroupAnimation.cs
index e1e5c645..cc189211 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/GroupAnimation.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/GroupAnimation.cs
@@ -1,6 +1,7 @@
namespace AzureMapsControl.Components.Tests.Animations
{
using System;
+ using System.Threading.Tasks;
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Animations.Options;
@@ -15,7 +16,7 @@ public class GroupAnimationTests
private readonly Mock _jsRuntime = new Mock();
[Fact]
- public async void Should_ThrowException_SeekAsync()
+ public async Task Should_ThrowException_SeekAsync()
{
var id = "id";
var animation = new GroupAnimation(id, _jsRuntime.Object);
@@ -25,7 +26,7 @@ public async void Should_ThrowException_SeekAsync()
}
[Fact]
- public async void Should_ThrowException_PauseAsync()
+ public async Task Should_ThrowException_PauseAsync()
{
var id = "id";
var animation = new GroupAnimation(id, _jsRuntime.Object);
@@ -35,7 +36,7 @@ public async void Should_ThrowException_PauseAsync()
}
[Fact]
- public async void Should_SetOptionsAsync()
+ public async Task Should_SetOptionsAsync()
{
var id = "id";
var animation = new GroupAnimation(id, _jsRuntime.Object);
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/MorphAnimation.cs b/tests/AzureMapsControl.Components.Tests/Animations/MorphAnimation.cs
index e111d784..38c15aba 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/MorphAnimation.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/MorphAnimation.cs
@@ -1,5 +1,7 @@
namespace AzureMapsControl.Components.Tests.Animations
{
+ using System.Threading.Tasks;
+
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Animations.Options;
using AzureMapsControl.Components.Runtime;
@@ -13,7 +15,7 @@ public class MorphAnimationTests
private readonly Mock _jsRuntime = new Mock();
[Fact]
- public async void Should_SetOptionsAsync()
+ public async Task Should_SetOptionsAsync()
{
var id = "id";
var animation = new MorphAnimation(id, _jsRuntime.Object);
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/MoveAlongPathAnimation.cs b/tests/AzureMapsControl.Components.Tests/Animations/MoveAlongPathAnimation.cs
index 525403d6..c7afb2d8 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/MoveAlongPathAnimation.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/MoveAlongPathAnimation.cs
@@ -1,5 +1,7 @@
namespace AzureMapsControl.Components.Tests.Animations
{
+ using System.Threading.Tasks;
+
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Animations.Options;
using AzureMapsControl.Components.Runtime;
@@ -13,7 +15,7 @@ public class MoveAlongPathAnimationTests
private readonly Mock _jsRuntime = new Mock();
[Fact]
- public async void Should_SetOptionsAsync()
+ public async Task Should_SetOptionsAsync()
{
var id = "id";
var animation = new MoveAlongPathAnimation(id, _jsRuntime.Object);
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/MoveAlongRouteAnimation.cs b/tests/AzureMapsControl.Components.Tests/Animations/MoveAlongRouteAnimation.cs
index af72fc02..5fe215d7 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/MoveAlongRouteAnimation.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/MoveAlongRouteAnimation.cs
@@ -1,6 +1,7 @@
namespace AzureMapsControl.Components.Tests.Animations
{
using System;
+ using System.Threading.Tasks;
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Animations.Options;
@@ -15,7 +16,7 @@ public class MoveAlongRouteAnimationTests
private readonly Mock _jsRuntime = new Mock();
[Fact]
- public async void Should_ThrowException_PauseAsync()
+ public async Task Should_ThrowException_PauseAsync()
{
var id = "id";
var animation = new MoveAlongRouteAnimation(id, _jsRuntime.Object);
@@ -25,7 +26,7 @@ public async void Should_ThrowException_PauseAsync()
}
[Fact]
- public async void Should_ThrowException_PlayAsync()
+ public async Task Should_ThrowException_PlayAsync()
{
var id = "id";
var animation = new MoveAlongRouteAnimation(id, _jsRuntime.Object);
@@ -35,7 +36,7 @@ public async void Should_ThrowException_PlayAsync()
}
[Fact]
- public async void Should_ThrowException_ResetAsync()
+ public async Task Should_ThrowException_ResetAsync()
{
var id = "id";
var animation = new MoveAlongRouteAnimation(id, _jsRuntime.Object);
@@ -45,7 +46,7 @@ public async void Should_ThrowException_ResetAsync()
}
[Fact]
- public async void Should_ThrowException_SeekAsync()
+ public async Task Should_ThrowException_SeekAsync()
{
var id = "id";
var animation = new MoveAlongRouteAnimation(id, _jsRuntime.Object);
@@ -55,7 +56,7 @@ public async void Should_ThrowException_SeekAsync()
}
[Fact]
- public async void Should_ThrowException_StopAsync()
+ public async Task Should_ThrowException_StopAsync()
{
var id = "id";
var animation = new MoveAlongRouteAnimation(id, _jsRuntime.Object);
@@ -65,7 +66,7 @@ public async void Should_ThrowException_StopAsync()
}
[Fact]
- public async void Should_ThrowException_SetOptionsAsync()
+ public async Task Should_ThrowException_SetOptionsAsync()
{
var id = "id";
var animation = new MoveAlongRouteAnimation(id, _jsRuntime.Object);
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/SetCoordinatesAnimation.cs b/tests/AzureMapsControl.Components.Tests/Animations/SetCoordinatesAnimation.cs
index 72edb5db..729a59fc 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/SetCoordinatesAnimation.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/SetCoordinatesAnimation.cs
@@ -1,5 +1,7 @@
namespace AzureMapsControl.Components.Tests.Animations
{
+ using System.Threading.Tasks;
+
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Animations.Options;
using AzureMapsControl.Components.Runtime;
@@ -13,7 +15,7 @@ public class SetCoordinatesAnimationTests
private readonly Mock _jsRuntime = new Mock();
[Fact]
- public async void Should_SetOptionsAsync()
+ public async Task Should_SetOptionsAsync()
{
var id = "id";
var animation = new SetCoordinatesAnimation(id, _jsRuntime.Object);
diff --git a/tests/AzureMapsControl.Components.Tests/Animations/SnakeLineAnimation.cs b/tests/AzureMapsControl.Components.Tests/Animations/SnakeLineAnimation.cs
index 53105dc7..04b1abd3 100644
--- a/tests/AzureMapsControl.Components.Tests/Animations/SnakeLineAnimation.cs
+++ b/tests/AzureMapsControl.Components.Tests/Animations/SnakeLineAnimation.cs
@@ -1,5 +1,7 @@
namespace AzureMapsControl.Components.Tests.Animations
{
+ using System.Threading.Tasks;
+
using AzureMapsControl.Components.Animations;
using AzureMapsControl.Components.Animations.Options;
using AzureMapsControl.Components.Runtime;
@@ -13,7 +15,7 @@ public class SnakeLineAnimationTests
private readonly Mock _jsRuntime = new Mock();
[Fact]
- public async void Should_SetOptionsAsync()
+ public async Task Should_SetOptionsAsync()
{
var id = "id";
var animation = new SnakeLineAnimation(id, _jsRuntime.Object);
diff --git a/tests/AzureMapsControl.Components.Tests/Controls/FullScreenControl.cs b/tests/AzureMapsControl.Components.Tests/Controls/FullScreenControl.cs
index 2adcff41..e31d97db 100644
--- a/tests/AzureMapsControl.Components.Tests/Controls/FullScreenControl.cs
+++ b/tests/AzureMapsControl.Components.Tests/Controls/FullScreenControl.cs
@@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+ using System.Threading.Tasks;
using AzureMapsControl.Components.Controls;
using AzureMapsControl.Components.Exceptions;
@@ -76,7 +77,7 @@ public class FullScreenControlTests
private readonly Mock _loggerMock = new();
[Fact]
- public async void Should_DisposeAsync()
+ public async Task Should_DisposeAsync()
{
var control = new FullScreenControl {
JsRuntime = _jsRuntimeMock.Object,
@@ -95,7 +96,7 @@ public async void Should_DisposeAsync()
}
[Fact]
- public async void Should_NotDispose_NotAddedToMapCase_Async()
+ public async Task Should_NotDispose_NotAddedToMapCase_Async()
{
var control = new FullScreenControl {
Logger = _loggerMock.Object
@@ -107,7 +108,7 @@ public async void Should_NotDispose_NotAddedToMapCase_Async()
}
[Fact]
- public async void Should_NotDisposeTwice_Async()
+ public async Task Should_NotDisposeTwice_Async()
{
var control = new FullScreenControl {
JsRuntime = _jsRuntimeMock.Object,
@@ -128,7 +129,7 @@ public async void Should_NotDisposeTwice_Async()
}
[Fact]
- public async void Should_SetOptionsAsync()
+ public async Task Should_SetOptionsAsync()
{
var control = new FullScreenControl(new FullScreenControlOptions()) {
JsRuntime = _jsRuntimeMock.Object,
@@ -144,7 +145,7 @@ public async void Should_SetOptionsAsync()
}
[Fact]
- public async void Should_SetOptions_NoOptionsCase_Async()
+ public async Task Should_SetOptions_NoOptionsCase_Async()
{
var control = new FullScreenControl {
JsRuntime = _jsRuntimeMock.Object,
@@ -160,7 +161,7 @@ public async void Should_SetOptions_NoOptionsCase_Async()
}
[Fact]
- public async void Should_NotSetOptions_NotAddedToMapCase_Async()
+ public async Task Should_NotSetOptions_NotAddedToMapCase_Async()
{
var control = new FullScreenControl(new FullScreenControlOptions()) {
Logger = _loggerMock.Object
@@ -171,7 +172,7 @@ public async void Should_NotSetOptions_NotAddedToMapCase_Async()
}
[Fact]
- public async void Should_NotSetOptions_DisposedCase_Async()
+ public async Task Should_NotSetOptions_DisposedCase_Async()
{
var control = new FullScreenControl(new FullScreenControlOptions()) {
JsRuntime = _jsRuntimeMock.Object,
@@ -186,7 +187,7 @@ public async void Should_NotSetOptions_DisposedCase_Async()
}
[Fact]
- public async void Should_GetIsFullScreenAsync()
+ public async Task Should_GetIsFullScreenAsync()
{
var isFullScreen = true;
_jsRuntimeMock.Setup(runtime => runtime.InvokeAsync(It.IsAny(), It.IsAny