ProductBase Create(bool create_A) { if (create_A) { return(paf.Create()); } else { return(pbf.Create()); } }
public void ProductAFactoryTest() { IFactory factory = new ProductAFactory(); Assert.Equal("ProductA", factory.Create().GetType().Name); }