Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joekolodz committed Jul 12, 2023
1 parent 7152a83 commit 1f379e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
1 change: 0 additions & 1 deletion src/ViewModels/HOTASCollectionViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public class HOTASCollectionViewModel : IDisposable, INotifyPropertyChanged

public ActionCatalog ActionCatalog => _deviceList.ActionCatalog;
public ObservableCollection<ActivityItem> Activity { get; set; }

public ObservableCollection<DeviceViewModel> Devices { get; set; }
public ObservableCollection<ModeActivationItem> ModeActivationItems => _deviceList.ModeActivationButtons.Values.ToObservableCollection();

Expand Down
30 changes: 0 additions & 30 deletions tests/HOTASCollectionViewModelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1377,36 +1377,6 @@ public void device_recording_stopped_no_map()
[Fact]
public void device_recording_stopped_with_map()
{
//var deviceId = Guid.NewGuid();

//var hotasVm = CreateHotasCollectionViewModel_DeviceVmFactorySub(out var subFileSystem, out var subQuickProfilePanelVm, out var deviceViewModelFactory);


//var subHotasCollection = CreateHotasCollectionSubstitute();
//subHotasCollection.Devices.Add(new HOTASDevice()
//{
// DeviceId = deviceId,
// ButtonMap =
// {
// new HOTASButton(){MapId = 43, Type = HOTASButton.ButtonType.Button, ActionCatalogItem = new ActionCatalogItem(){ActionName = "test action 1"}},
// new HOTASButton(){MapId = 44, Type = HOTASButton.ButtonType.Button, ActionCatalogItem = new ActionCatalogItem(){ActionName = "test action 2"}},
// }
//});

//subFileSystem.FileOpen(Arg.Any<string>()).ReturnsForAnyArgs(subHotasCollection);
//subFileSystem.LastSavedFileName.Returns("last saved file");
//subQuickProfilePanelVm.GetAutoLoadPath().Returns("test path");

//var subDevice = Substitute.For<HOTASDevice>();
//subDevice.DeviceId = Guid.NewGuid();
//subDevice.Name = "sub device";
//subDevice.ButtonMap.Add(new HOTASButton() { MapId = 45, Type = HOTASButton.ButtonType.Button, ActionCatalogItem = new ActionCatalogItem() { ActionName = "test action 3" } });
//subHotasCollection.Devices.Add(subDevice);

//var subDeviceVm = Substitute.For<DeviceViewModel>(Substitute.For<IDispatcher>(), subFileSystem, Substitute.For<MediaPlayerFactory>(), subDevice);


//deviceViewModelFactory.CreateDeviceViewModel(Arg.Any<IDispatcher>(), Arg.Any<IFileSystem>(), Arg.Any<MediaPlayerFactory>(), Arg.Any<IHOTASDevice>()).Returns(subDeviceVm);
var fileContents = GetJsonFile();
var subFileIo = Substitute.For<IFileIO>();
subFileIo.ReadAllText(Arg.Any<string>()).Returns(fileContents);
Expand Down

0 comments on commit 1f379e9

Please sign in to comment.