Exemplo n.º 1
0
 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
     });
 }
Exemplo n.º 2
0
        public async Task GetVaultsAsync()
        {
            var result = await _hardwareVaultService.GetVaultsAsync(_testingOptions.DataLoadingOptions);

            Assert.NotEmpty(result);
            Assert.Equal(_testingOptions.HardwareVaultsCount, result.Count);
        }