private void StubCodeFactory() { CodeFactory.Stub(x => x.CreateCode(codeStr1)).Return(code1); CodeFactory.Stub(x => x.CreateCode(codeStr2)).Return(code2); CodeFactory.Stub(x => x.CreateCode(codeStr3)).Return(code3); }