Skip to content
Permalink
Browse files

Updated with initial fluent builder addtion

  • Loading branch information...
garywoodfine committed May 6, 2019
1 parent 164275e commit 5b591e792aa98862709da1c60850ae58aab98056
Showing with 37 additions and 0 deletions.
  1. +12 −0 Builder/test/BuilderTest/BuilderTest.csproj
  2. +25 −0 Builder/test/BuilderTest/Program.cs
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\BuilderPattern.csproj" />
</ItemGroup>

</Project>
@@ -0,0 +1,25 @@
using System;
using BuilderPattern;

namespace BuilderTest
{
class Program
{
static void Main(string[] args)
{

var person = new PersonBuilder()
.Create("Gary", "Woodfine")
.Gender(Gender.Male)
.DateOfBirth(DateTime.Now)
.Occupation("Freelance Full-Stack Developer")
.Build();


Console.WriteLine(person.ToString());


Console.ReadLine();
}
}
}

0 comments on commit 5b591e7

Please sign in to comment.
You can’t perform that action at this time.