ant-design-blazor/tests/TestDomEventService.cs
Patrick f20d863bc3 test: Add ability to use OverlayTrigger in tests (#1227)
* Add TestDomEventService to TestBase

* chore(tests): update to net5

* feat(testdomeventservice): override eventdomservice to null

* fix(AddEventListener): make AddEventListener virtual

* feat(test): add basic overlay test

* fix(name): make name .cs
2021-03-09 13:54:30 +00:00

28 lines
770 B
C#

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.JSInterop;
namespace AntDesign.Tests
{
public class TestDomEventService : AntDesign.JsInterop.DomEventService
{
public TestDomEventService(IJSRuntime js) : base(js)
{
}
public override void AddEventListener<T>(object dom, string eventName, Action<T> callback, bool exclusive = true, bool preventDefault = false)
{
return;
}
}
}