Beispiel #1
0
 public void CriarBase(string nomePersonagem, string mensagemRetorno)
 {
     Factory.AbstractFactory abstractFactory = new Factory.AbstractFactory();
     Factory.IFabricaBases   fabricaBases    = abstractFactory.EscolherPersonagem(nomePersonagem);
     Assert.Equal(mensagemRetorno, fabricaBases.CriarBase());
 }
 // Constructors
 public Environment(AbstractFactory factory)
 {
     AbstractProductB = factory.CreateProductB();
     AbstractProductA = factory.CreateProductA();
 }