3 changed files with 33 additions and 10 deletions
@ -0,0 +1,23 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace Avalonia.UnitTests |
||||
|
{ |
||||
|
public class TestWithServicesBase : IDisposable |
||||
|
{ |
||||
|
private IDisposable _scope; |
||||
|
|
||||
|
public TestWithServicesBase() |
||||
|
{ |
||||
|
_scope = AvaloniaLocator.EnterScope(); |
||||
|
} |
||||
|
|
||||
|
public void Dispose() |
||||
|
{ |
||||
|
_scope.Dispose(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue