Files
speckle.xunit.runner.wpf/xunit.runner.wpf/ViewModel/TestAssemblyViewModel.cs
T
Dustin Campbell d4122f3a0c Correct namespaces to be pascal-cased
Conflicts:
	xunit.runner.wpf/ViewModel/MainViewModel.cs
2015-12-06 10:56:21 -08:00

40 lines
1.0 KiB
C#

using System.IO;
using GalaSoft.MvvmLight;
namespace Xunit.Runner.Wpf.ViewModel
{
public class TestAssemblyViewModel : ViewModelBase
{
private readonly AssemblyAndConfigFile _assembly;
private bool _isSelected;
private AssemblyState _state;
public TestAssemblyViewModel(AssemblyAndConfigFile assembly)
{
_assembly = assembly;
}
public string FileName => _assembly.AssemblyFileName;
public string ConfigFileName => Path.GetFileNameWithoutExtension(_assembly.ConfigFileName);
public string DisplayName => Path.GetFileNameWithoutExtension(_assembly.AssemblyFileName);
public bool IsSelected
{
get { return _isSelected; }
set { Set(ref _isSelected, value, nameof(IsSelected)); }
}
public AssemblyState State
{
get { return _state; }
set { Set(ref _state, value, nameof(State)); }
}
}
public enum AssemblyState
{
Ready,
Loading
}
}