Esempio n. 1
0
        public async Task <IEnumerable <(string Name, int Id)> > GetBits()
        {
            var bits = await _repo.GetAllAsync();

            IEnumerable <(string Name, int Id)> fbitEnums = bits.Select(x => (x.Name, x.Id));

            return(fbitEnums);
        }
Esempio n. 2
0
        private async Task <int> PrintBits()
        {
            var bits = await _repo.GetAllAsync();

            var bitsDataTable = GetDataTable(bits.ToList());

            _consoleTable.Print(bitsDataTable);

            return(0);
        }
Esempio n. 3
0
 /// <summary>
 /// Public constructor
 /// </summary>
 /// <param name="repo">Object used to read the Feature Bits</param>
 public FeatureBitEvaluator(IFeatureBitsRepo repo)
 {
     Definitions = repo.GetAllAsync().GetAwaiter().GetResult().ToList();
 }