public IHDSHotelShopping CreateSourceShopping(HDSSource sourceCode) { IHDSHotelShopping source = null; switch (sourceCode) { case HDSSource.Expedia: source = new ExpediaManager(); break; case HDSSource.Orbitz: source = new OrbitzManager(); break; } return source; }
public IHDSHotelContent CreateSourceContent(HDSSource sourceCode) { IHDSHotelContent source = null; switch (sourceCode) { case HDSSource.Expedia: source = new ExpediaManager(); break; case HDSSource.Orbitz: source = new OrbitzManager(); break; case HDSSource.Local: // local source is internal source where we store information locally in database (e.g. hotel contents) source = null; break; } return source; }