/// <summary> /// Class that represents the command to list feature bits /// </summary> /// <summary> /// List feature bit enumerations /// </summary> /// <param name="options">Command line options to list Features enumerations.</param> /// <param name="repo">Feature Bit repository</param> /// <param name="consoleTable">helper to write to console in table format</param> public ListCommand(ListOptions options, IFeatureBitsRepo repo, IConsoleTable consoleTable) { _repo = repo; _options = options; _consoleTable = consoleTable; }
/// <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(); }
public RemoveCommand(RemoveOptions opts, IFeatureBitsRepo repo) { _opts = opts ?? throw new ArgumentNullException(nameof(opts), "RemoveOptions object is required."); _repo = repo ?? throw new ArgumentNullException(nameof(repo), "FeatureBits repository is required."); }
/// <summary> /// File system interface to read/write files /// </summary> /// <summary> /// Generate a file with feature bit enumerations /// </summary> /// <param name="options">Command line options to generate Features enumerations.</param> /// <param name="repo">Feature Bit repository</param> /// <param name="fileSystem">Interface to the File System</param> public GenerateCommand(GenerateOptions options, IFeatureBitsRepo repo, IFileSystem fileSystem) { _repo = repo; _fileSystem = fileSystem; _options = options; }