Example #1
0
 /// <summary>
 /// Random spinner
 /// If no spinner type is passed to constructor, random will be called
 /// </summary>
 /// <returns></returns>
 public DotSpinner Random()
 {
     this.Spinner = Spinners[_rand.Next(Spinners.Count)];
     return(this);
 }
Example #2
0
 public DotSpinner(SpinnerTypes spinnerType, Task task = null) : this(task)
 {
     this.Spinner = Spinners.FirstOrDefault(e => e.Name == spinnerType);
 }