/ src / common / AllExperiments / Microsoft.VariantAssignment / Contract / VariantAssignmentRequest.cs
VariantAssignmentRequest.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using System.Collections.Specialized;
 6  
 7  // The goal of this class is to just mock out the Microsoft.VariantAssignment close source objects
 8  namespace Microsoft.VariantAssignment.Contract
 9  {
10      public class VariantAssignmentRequest : IVariantAssignmentRequest
11      {
12          private NameValueCollection _parameters = new NameValueCollection();
13  
14          /// <summary>
15          /// Gets or sets mutable <see cref="IVariantAssignmentRequest.Parameters"/>.
16          /// </summary>
17          public NameValueCollection Parameters { get => _parameters; set => _parameters = value; }
18  
19          IReadOnlyCollection<(string Key, string Value)> IVariantAssignmentRequest.Parameters => (IReadOnlyCollection<(string Key, string Value)>)_parameters;
20      }
21  }