-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
28 lines (22 loc) · 846 Bytes
/
Copy pathProgram.cs
File metadata and controls
28 lines (22 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
namespace FluentInterfaceConsole
{
public class Program
{
static void Main(string[] args)
{
CowMilker cowMilker = new CowMilker();
SheepMilker sheepMilker= new SheepMilker();
CowMilkerNew cowMilkerNew = new CowMilkerNew();
Console.WriteLine("New cow is going to be milking");
cowMilkerNew.Immobilize().GiveFood().TakeBucket().Milk();
Console.WriteLine("************");
Console.WriteLine("Cow is going to be milking");
cowMilker.Immobilize().GiveFood().TakeBucket().Milk();
Console.WriteLine("************");
Console.WriteLine("Sheep is going to be milking");
sheepMilker.Immobilize().GiveFood().TakeBucket().Milk();
Console.ReadLine();
}
}
}