diff --git a/src/Dax.Formatter.Tests/Models/DaxFormatterMultipleRequestTests.cs b/src/Dax.Formatter.Tests/Models/DaxFormatterMultipleRequestTests.cs index fdbb3cf..57847e1 100644 --- a/src/Dax.Formatter.Tests/Models/DaxFormatterMultipleRequestTests.cs +++ b/src/Dax.Formatter.Tests/Models/DaxFormatterMultipleRequestTests.cs @@ -47,6 +47,9 @@ public void DaxFormatterMultipleRequest_SensitiveDatabaseNameIsProtected() [InlineData(ServerType.PowerBIReportServer, "PBI Report Server")] [InlineData(ServerType.PowerPivot, "PowerPivot")] [InlineData(ServerType.SSDT, "SSDT")] + [InlineData(ServerType.AzureAnalysisServices, "AzureAS")] + [InlineData(ServerType.PowerBIService, "PBI Service")] + [InlineData(ServerType.Offline, "Offline")] public void DaxFormatterMultipleRequest_ServerTypeSerialization(ServerType serverType, string expectedServerType) { var request = new DaxFormatterMultipleRequest diff --git a/src/Dax.Formatter.Tests/Models/DaxFormatterSingleRequestTests.cs b/src/Dax.Formatter.Tests/Models/DaxFormatterSingleRequestTests.cs index 3160222..cc43f98 100644 --- a/src/Dax.Formatter.Tests/Models/DaxFormatterSingleRequestTests.cs +++ b/src/Dax.Formatter.Tests/Models/DaxFormatterSingleRequestTests.cs @@ -39,6 +39,9 @@ public void DaxFormatterSingleRequest_SensitiveDatabaseNameIsProtected() [InlineData(ServerType.PowerBIReportServer, "PBI Report Server")] [InlineData(ServerType.PowerPivot, "PowerPivot")] [InlineData(ServerType.SSDT, "SSDT")] + [InlineData(ServerType.AzureAnalysisServices, "AzureAS")] + [InlineData(ServerType.PowerBIService, "PBI Service")] + [InlineData(ServerType.Offline, "Offline")] public void DaxFormatterSingleRequest_ServerTypeSerialization(ServerType serverType, string expectedServerType) { var request = new DaxFormatterSingleRequest diff --git a/src/Dax.Formatter/AnalysisServices/ServerType.cs b/src/Dax.Formatter/AnalysisServices/ServerType.cs index 80340ff..0fa9c7e 100644 --- a/src/Dax.Formatter/AnalysisServices/ServerType.cs +++ b/src/Dax.Formatter/AnalysisServices/ServerType.cs @@ -18,6 +18,16 @@ public enum ServerType PowerPivot, [EnumMember(Value = "SSDT")] - SSDT - } + SSDT, + + [EnumMember(Value = "AzureAS")] + AzureAnalysisServices, + + [EnumMember(Value = "PBI Service")] + PowerBIService, + + [EnumMember(Value = "Offline")] + Offline + + } }