mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:56:31 +00:00
big refactoring. get rid of static properties and coupled architecture. prepare system for integration tests
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using Azaion.Common.Services;
|
||||
|
||||
namespace Azaion.Test;
|
||||
|
||||
public class SynchronousUICommandDispatcher : IUICommandDispatcher
|
||||
{
|
||||
public Task ExecuteAsync(Action action)
|
||||
{
|
||||
action();
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public Task<T> ExecuteAsync<T>(Func<T> func)
|
||||
{
|
||||
return Task.FromResult(func());
|
||||
}
|
||||
|
||||
public void Execute(Action action)
|
||||
{
|
||||
action();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user