Skip to content

Commit

Permalink
Merge pull request #14 from sql-bi/extend-server-types
Browse files Browse the repository at this point in the history
Added additional server types for issue #13
  • Loading branch information
marcosqlbi committed May 11, 2022
2 parents 507ef6a + e2eba58 commit aab9ddf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 12 additions & 2 deletions src/Dax.Formatter/AnalysisServices/ServerType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
}

0 comments on commit aab9ddf

Please sign in to comment.