Skip to content

Instantly share code, notes, and snippets.

@oinant
Created September 8, 2015 14:30
Show Gist options
  • Save oinant/e94ed17faca842c8c501 to your computer and use it in GitHub Desktop.
Save oinant/e94ed17faca842c8c501 to your computer and use it in GitHub Desktop.
using System;
namespace Builder
{
public class MyClassClient
{
public void ExecuteTheDefaultUseCase()
{
var myClass = new MyClassBuilder()
.SetTheName("the first use case is simple")
.Build();
var theResult = myClass.DoSomeBehavior();
}
public void ExecuteAnotherUseCase()
{
var myClass = new MyClassBuilder()
.SetTheName("the first another one")
.PrependPropertyDescriptor()
.LowerizeOutput()
.Build();
var theResult = myClass.DoSomeBehavior();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment