public async Task Should_Get_ClientClaim() { var command = ClientViewModelFaker.GenerateSaveClient().Generate(); await _clientAppService.Save(command); var property = ClientViewModelFaker.GenerateSaveClaim(command.ClientId).Generate(); await _clientAppService.SaveClaim(property); _database.Clients.FirstOrDefault(s => s.ClientId == command.ClientId).Should().NotBeNull(); var clams = await _clientAppService.GetClaims(command.ClientId); clams.Should().HaveCountGreaterOrEqualTo(1); }
public async Task <ActionResult <IEnumerable <ClaimViewModel> > > Claims(string client) { var clients = await _clientAppService.GetClaims(client); return(ResponseGet(clients)); }