public static IDisposable Start(TestServices services = null) { var scope = AvaloniaLocator.EnterScope(); var app = new UnitTestApplication(services); AvaloniaLocator.CurrentMutable.BindToSelf<Application>(app); return scope; }
public UnitTestApplication(TestServices services) { _services = services ?? new TestServices(); AvaloniaLocator.CurrentMutable.BindToSelf <Application>(this); RegisterServices(); }
public UnitTestApplication(TestServices services) { _services = services ?? new TestServices(); RegisterServices(); }