public async Task<ActionResult<IEnumerable<HardwareVault>>> GetHardwareVaults() { var count = await _hardwareVaultService.GetVaultsCountAsync(new DataLoadingOptions<HardwareVaultFilter>()); return await _hardwareVaultService.GetVaultsAsync(new DataLoadingOptions<HardwareVaultFilter> { Take = count, SortedColumn = nameof(HardwareVault.Id), SortDirection = ListSortDirection.Ascending }); }
public async Task GetVaultsAsync() { var result = await _hardwareVaultService.GetVaultsAsync(_testingOptions.DataLoadingOptions); Assert.NotEmpty(result); Assert.Equal(_testingOptions.HardwareVaultsCount, result.Count); }