/ src / common / AllExperiments / Microsoft.VariantAssignment / Contract / VariantAssignmentServiceResponse.cs
VariantAssignmentServiceResponse.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 // The goal of this class is to just mock out the Microsoft.VariantAssignment close source objects 6 namespace Microsoft.VariantAssignment.Contract 7 { 8 /// <summary> 9 /// Mutable implementation of <see cref="IVariantAssignmentResponse"/> for (de)serialization. 10 /// </summary> 11 internal class VariantAssignmentServiceResponse : IVariantAssignmentResponse, IDisposable 12 { 13 /// <inheritdoc /> 14 public virtual long DataVersion { get; set; } 15 16 public virtual IReadOnlyCollection<IAssignedVariant> AssignedVariants { get; set; } = Array.Empty<IAssignedVariant>(); 17 18 public IFeatureVariable GetFeatureVariable(IReadOnlyList<string> path) 19 { 20 throw new NotImplementedException(); 21 } 22 23 public IReadOnlyList<IFeatureVariable> GetFeatureVariables(IReadOnlyList<string> prefix) 24 { 25 throw new NotImplementedException(); 26 } 27 28 protected virtual void Dispose(bool disposing) 29 { 30 } 31 32 public void Dispose() 33 { 34 Dispose(true); 35 GC.SuppressFinalize(this); 36 } 37 38 public IReadOnlyList<IFeatureVariable> GetFeatureVariables() 39 { 40 throw new NotImplementedException(); 41 } 42 43 public string GetAssignmentContext() 44 { 45 return string.Empty; 46 } 47 } 48 }