Part 1 & 2

This commit is contained in:
KäseToatz
2024-09-25 22:24:42 +02:00
commit a33cf50a4c
14 changed files with 382 additions and 0 deletions

14
Buckets/Buckets.csproj Normal file
View File

@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Buckets.Logic\Buckets.Logic.csproj" />
</ItemGroup>
</Project>

28
Buckets/Program.cs Normal file
View File

@ -0,0 +1,28 @@
using Buckets.Logic;
namespace Buckets
{
internal class Program
{
static void Main()
{
Bucket bucket = new(50, 0);
bucket.Fill(10);
bucket.Empty();
bucket.Fill(20);
bucket.Empty(10);
OilBarrel oilbarrel = new(0);
oilbarrel.Fill(10);
oilbarrel.Empty();
oilbarrel.Fill(20);
oilbarrel.Empty(10);
Rainbarrel rainbarrel = new(100, 0);
rainbarrel.Fill(10);
rainbarrel.Empty();
rainbarrel.Fill(20);
rainbarrel.Empty(10);
}
}
}