Skip to content

Commit

Permalink
Clean Slate
Browse files Browse the repository at this point in the history
  • Loading branch information
icraftsoftware committed Jan 25, 2022
1 parent 0481332 commit a9836b5
Show file tree
Hide file tree
Showing 30 changed files with 577 additions and 151 deletions.
2 changes: 1 addition & 1 deletion .settings
2 changes: 2 additions & 0 deletions Be.Stateless.BizTalk.Explorer.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<s:Double x:Key="/Default/Environment/InjectedLayers/InjectedLayerCustomization/=FileAD76E8C2C25CED47A6FA160551990498/RelativePriority/@EntryValue">4</s:Double>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Chabot/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Fran_00E7ois/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Mgmt/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=MSBTS/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Unenlist/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Unenlisted/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Unenlisting/@EntryIndexedValue">True</s:Boolean>
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Be.Stateless.BizTalk.Explorer

[![Build Status](https://dev.azure.com/icraftsoftware/be.stateless/_apis/build/status/Be.Stateless.BizTalk.Explorer%20Manual%20Release?branchName=master)](https://dev.azure.com/icraftsoftware/be.stateless/_build/latest?definitionId=666&branchName=master)
[![GitHub Release](https://img.shields.io/github/v/release/icraftsoftware/Be.Stateless.BizTalk.Explorer)](https://github.com/icraftsoftware/Be.Stateless.BizTalk.Explorer/releases/latest)
[![NuGet Version](https://img.shields.io/nuget/v/Be.Stateless.BizTalk.Explorer.svg?style=flat)](https://www.nuget.org/packages/Be.Stateless.BizTalk.Explorer/)
[![Build Status](https://dev.azure.com/icraftsoftware/be.stateless/_apis/build/status/Be.Stateless.BizTalk.Explorer%20Manual%20Release?branchName=master)](https://dev.azure.com/icraftsoftware/be.stateless/_build/latest?definitionId=60&branchName=master)
[![GitHub Release](https://img.shields.io/github/v/release/icraftsoftware/Be.Stateless.BizTalk.Explorer?label=Release&logo=github)](https://github.com/icraftsoftware/Be.Stateless.BizTalk.Explorer/releases/latest)

BizTalk.Factory's Microsoft BizTalk Server Administration API for general purpose BizTalk Server development.

## NuGet Packages

[![NuGet Version](https://img.shields.io/nuget/v/Be.Stateless.BizTalk.Explorer.svg?label=Be.Stateless.BizTalk.Explorer&style=flat&logo=nuget)](https://www.nuget.org/packages/Be.Stateless.BizTalk.Explorer/)
4 changes: 2 additions & 2 deletions azure-continuous-integration-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
trigger:
- master
- dev/*

resources:
repositories:
Expand All @@ -11,6 +12,5 @@ resources:
extends:
template: Pipelines/net/continuous-integration.yml@pipelineTemplateRepository
parameters:
ProjectOrSolutionPath: "$(Build.SourcesDirectory)/Be.Stateless.BizTalk.Explorer.sln"
Major: 2
Minor: 0
Minor: 1
4 changes: 2 additions & 2 deletions azure-manual-release-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
trigger: none
pr: none

resources:
repositories:
Expand All @@ -10,6 +11,5 @@ resources:
extends:
template: Pipelines/net/manual-release.yml@pipelineTemplateRepository
parameters:
ProjectOrSolutionPath: "$(Build.SourcesDirectory)/Be.Stateless.BizTalk.Explorer.sln"
Major: 2
Minor: 0
Minor: 1
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,27 @@
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<RootNamespace>Be.Stateless.BizTalk</RootNamespace>
<AssemblyTitle>Be.Stateless.BizTalk.Explorer.Tests</AssemblyTitle>
<AssemblyName>Be.Stateless.BizTalk.Explorer.Tests</AssemblyName>
<Description>Unit tests for BizTalk.Factory's Microsoft BizTalk Server Administration API for general purpose BizTalk Server development.</Description>
<IsPublishable>false</IsPublishable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BizTalk.Server.2020.Runtime" Version="1.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="2.9.0">
<PackageReference Include="BizTalk.Server.2020.Utilities" Version="1.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="Moq" Version="4.13.1" />
<PackageReference Include="coverlet.msbuild" Version="3.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="6.3.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="Moq" Version="4.16.1" />
<PackageReference Include="xunit.core" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#endregion

using System;
using FluentAssertions;
using Microsoft.BizTalk.ExplorerOM;
using Xunit;
Expand All @@ -25,9 +24,11 @@ namespace Be.Stateless.BizTalk.Explorer
{
public class SendPortFixture
{
[SkippableFact(typeof(ArgumentException))]
[SkippableFact]
public void Unenlist()
{
Skip.IfNot(BizTalkServerGroup.IsConfigured);

var application = BizTalkServerGroup.Applications["BizTalk Server Default Application"];
var sendPort = application.SendPorts["DummySendPort"];

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#region Copyright & License

// Copyright © 2012 - 2021 François Chabot
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#endregion

using System;
using Be.Stateless.BizTalk.Explorer;
using FluentAssertions;
using Xunit;

namespace Be.Stateless.BizTalk.Management
{
public class BizTalkInstallationFixture
{
[Fact]
public void DeveloperToolsPath()
{
BizTalkInstallation.DeveloperToolsPath.Should().Be($@"{INSTALLATION_PATH}\Developer Tools\");
}

[Fact]
public void InstallationPath()
{
BizTalkInstallation.InstallationPath.Should().Be($@"{INSTALLATION_PATH}\");
}

[Fact]
public void IsInstalled()
{
BizTalkInstallation.IsInstalled.Should().BeTrue();
}

[SkippableFact]
public void ManagementDatabaseName()
{
Skip.IfNot(BizTalkServerGroup.IsConfigured);
BizTalkInstallation.ManagementDatabaseName.Should().Be("BizTalkMgmtDb");
}

[SkippableFact]
public void ManagementDatabaseServer()
{
Skip.IfNot(BizTalkServerGroup.IsConfigured);
BizTalkInstallation.ManagementDatabaseServer.Should().Be(Environment.MachineName);
}

[Fact]
public void PipelineToolsPath()
{
BizTalkInstallation.PipelineToolsPath.Should().Be($@"{INSTALLATION_PATH}\SDK\Utilities\PipelineTools\");
}

[SkippableFact]
public void SqlScriptsPath()
{
Skip.IfNot(BizTalkServerGroup.IsConfigured);
BizTalkInstallation.SqlScriptsPath.Should().Be($@"{INSTALLATION_PATH}\Schema\");
}

private const string INSTALLATION_PATH = @"C:\Program Files (x86)\Microsoft BizTalk Server";
}
}

0 comments on commit a9836b5

Please sign in to comment.