public async Task GetVolumeByPartitionName() { var sut = new DiskApi(); var disk = await sut.GetDisk(3); var vols = await disk.GetVolumeByPartitionName("MainOS"); }
public async Task GetDataByLabel() { var diskApi = new DiskApi(); var disk = await diskApi.GetDisk(3); var partition = await disk.GetPartition("Data"); }
public async Task Prepare() { var api = new DiskApi(); var allocators = new [] { new DefaultSpaceAllocator() }; var operations = new FileSystemOperations(); var optionsProvider = new WindowsDeploymentOptionsProvider { Options = new WindowsDeploymentOptions { SizeReservedForWindows = ByteSize.FromMegaBytes(200), } }; var phone = new TestPhone(api, null, null); var preparer = new LumiaDiskLayoutPreparer(optionsProvider, operations, allocators, new PartitionCleaner(), phone); var disk = await api.GetDisk(3); await preparer.Prepare(disk); }