public int NormalFacadeOnlyOneObject() { var result = 0; for (var i = 0; i < 10000; i++) { result = NormalFacade.DelayReturn(i, NumberOfHeavyObject.First); } return(result); }
public int NormalFacadeOnlyThreeObjects() { var firstResult = 0; var secondResult = 0; var thirdResult = 0; for (var i = 0; i < 10000; i++) { firstResult = NormalFacade.DelayReturn(i, NumberOfHeavyObject.First); secondResult = NormalFacade.DelayReturn(i, NumberOfHeavyObject.Second); thirdResult = NormalFacade.DelayReturn(i, NumberOfHeavyObject.Third); } if (firstResult == secondResult && firstResult == thirdResult) { return(5); } return(0); }