Add compressed employee example

This commit is contained in:
Petrutiu Mihai
2016-07-18 15:45:28 +03:00
parent 7192d9e9ce
commit 83e82e03ab
8 changed files with 343 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
using MememntoPattern.Employee;
using MememntoPattern.CompressedEmployee;
using MememntoPattern.Employee;
using MememntoPattern.EmployeeSerialized;
using MememntoPattern.IterativeEmployee;
using System;
@@ -19,20 +20,27 @@ namespace MememntoPattern
GoToNextStep();
//Basic example
EmployeeExample empExample = new EmployeeExample();
empExample.Run();
GoToNextStep();
//Limited stack with serialization
EmployeeSerializedExample empSerExample = new EmployeeSerializedExample();
empSerExample.Run();
GoToNextStep();
//Iterative memento
EmployeeIterativeExample empIterEx = new EmployeeIterativeExample();
empIterEx.Run();
GoToNextStep();
//Basic memento with compression
EmployeeCompressedExample empComp = new EmployeeCompressedExample();
empComp.Run();
Console.WriteLine(GetPitfalls());
}