// Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using System.Reactive; using Perspex.Collections; using Perspex.Controls; using Perspex.Data; namespace Perspex.Styling.UnitTests { public class TestControlBase : IStyleable { public TestControlBase() { Classes = new Classes(); SubscribeCheckObservable = new TestObservable(); } public event EventHandler PropertyChanged; public string Name { get; set; } public virtual Classes Classes { get; set; } public Type StyleKey => GetType(); public TestObservable SubscribeCheckObservable { get; private set; } public ITemplatedControl TemplatedParent { get; set; } IPerspexReadOnlyList IStyleable.Classes => Classes; IObservable IStyleable.StyleDetach { get; } public object GetValue(PerspexProperty property) { throw new NotImplementedException(); } public T GetValue(PerspexProperty property) { throw new NotImplementedException(); } public void SetValue(PerspexProperty property, object value, BindingPriority priority) { throw new NotImplementedException(); } public void SetValue(PerspexProperty property, T value, BindingPriority priority = BindingPriority.LocalValue) { throw new NotImplementedException(); } public bool IsSet(PerspexProperty property) { throw new NotImplementedException(); } public IDisposable Bind(PerspexProperty property, IObservable source, BindingPriority priority) { throw new NotImplementedException(); } public IDisposable Bind(PerspexProperty property, IObservable source, BindingPriority priority = BindingPriority.LocalValue) { throw new NotImplementedException(); } } }