generated from hughesjs/dotnet-8-ci-cd-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from hughesjs/enable-cd
Enable cd
- Loading branch information
Showing
8 changed files
with
104 additions
and
17 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<AdditionalFiles Include="DemoApiDefinition.fluid.yml" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="SuperFluid" Version="0.0.2" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
using SuperFluid.Tests.Cars; | ||
|
||
string builtString = Test.Initialize() | ||
.Unlock() | ||
.Enter() | ||
.Start() | ||
.Stop() | ||
.Exit() | ||
.Lock() | ||
.Unlock() | ||
.Enter() | ||
.Start() | ||
.Build(); | ||
|
||
Console.WriteLine(builtString); | ||
|
||
public class Test : ICarActor | ||
{ | ||
|
||
private readonly List<string> _calls = new(); | ||
|
||
public ICanUnlock Lock() | ||
{ | ||
_calls.Add("Lock!"); | ||
return this; | ||
} | ||
|
||
public ICanStartOrExit Enter() | ||
{ | ||
_calls.Add("Enter!"); | ||
return this; | ||
} | ||
|
||
|
||
public ICanLockOrEnter Unlock() | ||
{ | ||
_calls.Add("Unlock!"); | ||
return this; | ||
} | ||
|
||
public ICanStopOrBuild Start() | ||
{ | ||
_calls.Add("Start!"); | ||
return this; | ||
} | ||
|
||
public ICanLockOrEnter Exit() | ||
{ | ||
_calls.Add("Exit!"); | ||
return this; | ||
} | ||
|
||
public ICanStartOrExit Stop() | ||
{ | ||
_calls.Add("Stop!"); | ||
return this; | ||
} | ||
|
||
public string Build() => string.Join('\n', _calls); | ||
|
||
public static ICanUnlock Initialize() => new Test(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters