text: ﻿namespace MyTested.AspNetCore.Mvc
  {
      using System.Collections;
      using System.Collections.Generic;
      using Utilities.Validators;
  
      /// <summary>
      /// Class used for specifying additional assertions for the action attributes.
      /// </summary>
      public class ActionAttributes : IEnumerable<object>
      {
          private readonly IEnumerable<object> attributes;
  
          public ActionAttributes(IEnumerable<object> attributes)
          {
              CommonValidator.CheckForNullReference(attributes, nameof(ActionAttributes));
              this.attributes = attributes;
          }
  
          public IEnumerator<object> GetEnumerator() => this.attributes.GetEnumerator();
  
          IEnumerator IEnumerable.GetEnumerator() => this.GetEnumerator();
      }
  }