public Point CreatePoint_WithObjectInitializer(int x, int y) { TextWriter injectedVariable = new AutomatedTestLogger(); return(new Point(x, y) { OutputWriter = injectedVariable }); }
public Point CreatePoint_WithBasicInjection(int x, int y) { TextWriter injectedVariable = new AutomatedTestLogger(); Point point = new Point(x, y); point.OutputWriter = injectedVariable; return(point); }
public Point CreatePoint_WithAddedConstructors(int x, int y) { TextWriter injectedVariable = new AutomatedTestLogger(); return(new Point(x, y, injectedVariable)); }
public Point CreatePoint_WithFluentDesign(int x, int y) { TextWriter injectedVariable = new AutomatedTestLogger(); return(new Point(x, y).SetOutputWriter(injectedVariable)); }