static void Main(string[] args)
 {
     using (var appContext = new AppContext())
     {
         var securityServ = appContext.GetObject<ISecurityService>();
         using (var uow = appContext.GetObject<IUnitOfWork>())
         {
             using (var uow1 = appContext.GetObject<IUnitOfWork>())
             {
                 securityServ.CreateAccount(new CreateAccountInfo() { Name = "Michael", Password = "******" });
                 securityServ.CreateAccount(new CreateAccountInfo() { Name = "Roland", Password = "******" });
                 uow1.Complete();
             }
             using (var uow2 = appContext.GetObject<IUnitOfWork>())
             {
                 securityServ.CreateAccount(new CreateAccountInfo() { Name = "Steffen", Password = "******" });
                 securityServ.CreateAccount(new CreateAccountInfo() { Name = "Erik", Password = "******" });
                 securityServ.CreateAccount(new CreateAccountInfo() { Name = "Frank", Password = "******" });
                 using (var uow21 = appContext.GetObject<IUnitOfWork>())
                 {
                     securityServ.CreateAccount(new CreateAccountInfo() { Name = "Dennis", Password = "******" });
                     securityServ.CreateAccount(new CreateAccountInfo() { Name = "Dimitri", Password = "******" });
                     securityServ.CreateAccount(new CreateAccountInfo() { Name = "Christian", Password = "******" });
                     uow21.Complete();
                 }
                 uow2.Complete();
             }
             using (var uow3 = appContext.GetObject<IUnitOfWork>())
             {
                 securityServ.CreateAccount(new CreateAccountInfo() { Name = "Robert", Password = "******" });
                 uow3.Complete();
             }
             uow.Complete();
         }
         foreach (var item in appContext.GetObject<IUserRepository>())
         {
             Console.WriteLine(item);
         }
     }
     PressAnyKeyToExit();
 }