Beispiel #1
0
        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);
        }
Beispiel #2
0
        public async Task <ActionResult <IEnumerable <ClaimViewModel> > > Claims(string client)
        {
            var clients = await _clientAppService.GetClaims(client);

            return(ResponseGet(clients));
        }