Skip to content

Commit

Permalink
- fix test and register current stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Jun 4, 2021
1 parent 4c221cd commit f5075d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Core/tests/DeviceTests/Handlers/HandlerTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Threading.Tasks;
using Microsoft.Maui.DeviceTests.Stubs;
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Handlers;
using Microsoft.Maui.Hosting;
using Xunit;

Expand All @@ -19,6 +20,11 @@ public HandlerTestBase()
{
var appBuilder = AppHost
.CreateDefaultBuilder()
.ConfigureMauiHandlers(handlers =>
{
handlers.AddHandler(typeof(SliderStub), typeof(SliderHandler));
handlers.AddHandler(typeof(ButtonStub), typeof(ButtonHandler));
})
.ConfigureImageSources((ctx, services) =>
{
services.AddService<ICountedImageSourceStub, CountedImageSourceServiceStub>();
Expand Down

0 comments on commit f5075d5

Please sign in to comment.