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
     });
 }
Esempio n. 2
0
        public async Task GetVaultsCountAsync()
        {
            var vaultsCount = await _hardwareVaultService.GetVaultsCountAsync(_testingOptions.DataLoadingOptions);

            Assert.Equal(_testingOptions.HardwareVaultsCount, vaultsCount);
        }