public async Task HoistTwoVariables() { if (true) { var hoistTwoVariablesModel = new StringModel("foo"); var obj = new StringClass(hoistTwoVariablesModel); AssertEquals(obj.Model.StringValue, "foo"); } else { var hoistTwoVariablesModel = new IntegerModel(5); var obj = new IntegerClass(hoistTwoVariablesModel); AssertEquals(obj.Model.IntValue, 5); } }
public IntegerClass(IntegerModel model) { Model = model; }