Skip to content

Instantly share code, notes, and snippets.

@flaviorl-net
Created March 6, 2022 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flaviorl-net/5f83d7336a6a06fac0e7e770998be755 to your computer and use it in GitHub Desktop.
Save flaviorl-net/5f83d7336a6a06fac0e7e770998be755 to your computer and use it in GitHub Desktop.
static void Main(string[] args)
{
var funilFactory = new FunilFactory();
//Cadastra James como um Suspect
funilFactory.ObterFunil<Suspect>()
.Cadastrar(new FunilModel() { Nome = "James" });
//Cadastra James como um Prospect
funilFactory.ObterFunil<Prospect>()
.Cadastrar(new FunilModel() { Nome = "James" });
Console.ReadLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment