Exemple #1
0
        public async Task GetComponentAsync(string realm)
        {
            var components = await ComponentsClient.GetComponentsAsync(realm);

            string componentId = components.FirstOrDefault()?.Id;

            if (componentId != null)
            {
                var result = await ComponentsClient.GetComponentAsync(realm, componentId);

                Assert.NotNull(result);
            }
        }
Exemple #2
0
        public async Task <Result <List <Component> > > GetComponents()
        {
            var resultFromClient = await componentsClient.GetComponentsAsync();

            return(new Result <List <Component> >
            {
                IsSuccess = resultFromClient.IsSuccess,
                Message = resultFromClient.Message,
                Value = resultFromClient.IsSuccess
                    ? resultFromClient.Value.Select(c => ComponentConverter.FromDto(c)).ToList()
                    : null
            });
        }
Exemple #3
0
        public async Task GetComponentsAsync(string realm)
        {
            var result = await ComponentsClient.GetComponentsAsync(realm);

            Assert.NotNull(result);
        }