public static void InicarMock()
        {
            // 1. Create a new Simple Injector container
            _container = new Container();
            _container.Options.DefaultScopedLifestyle = new AsyncScopedLifestyle();

            RepositorioModulo.Carregar(_container);
            ServicoModulo.Carregar(_container);

            AsyncScopedLifestyle.BeginScope(_container);
        }
Example #2
0
 public static void Carregar(Container recipiente)
 {
     ServicoModulo.Carregar(recipiente);
     RepositorioModulo.Carregar(recipiente);
     InfraestruturaModulo.Carregar(recipiente);
 }