Esempio n. 1
0
 private void Seed(CreateOrUpdateSettings command)
 {
     command.AllowedTypeValues = new[]
     {
         "Agreement Type #1",
         "Agreement Type #2",
         "Agreement Type #3",
     };
     command.AllowedStatusValues = new[]
     {
         "Current Status #1",
         "Current Status #2",
         "Current Status #3",
         "Current Status #4",
     };
     command.AllowedContactTypeValues = new[]
     {
         "Contact Type #1",
         "Contact Type #2",
         "Contact Type #3",
         "Contact Type #4",
     };
     _settingsHandler.Handle(command);
     _unitOfWork.SaveChanges();
 }
 private void Seed(CreateOrUpdateSettings command)
 {
     command.AllowedTypeValues = new[]
     {
         "Agreement Type #1",
         "Agreement Type #2",
         "Agreement Type #3",
     };
     command.AllowedStatusValues = new[]
     {
         "Current Status #1",
         "Current Status #2",
         "Current Status #3",
         "Current Status #4",
     };
     command.AllowedContactTypeValues = new[]
     {
         "Contact Type #1",
         "Contact Type #2",
         "Contact Type #3",
         "Contact Type #4",
     };
     _settingsHandler.Handle(command);
     _unitOfWork.SaveChanges();
 }
Esempio n. 3
0
        public void Seed()
        {
            // seed settings for a few test tenants
            PurgeCurrentSettings();
            var tenants = new Dictionary <string, string>
            {
                { "www.fue.edu.eg", "@fue.edu.eg" },
                { "www.griffith.edu.au", "@griffith.edu.au" },
                { "www.unsw.edu.au", "@unsw.edu.au" },
            };

            foreach (var tenant in tenants)
            {
                var principal = GetPrincipal(tenant.Value);
                var command   = new CreateOrUpdateSettings(principal);
                Seed(command);
            }
        }
        public void Seed()
        {
            // seed settings for a few test tenants
            PurgeCurrentSettings();
            var tenants = new Dictionary<string, string>
            {
                { "www.fue.edu.eg", "@fue.edu.eg" },
                { "www.griffith.edu.au", "@griffith.edu.au" },
                { "www.unsw.edu.au", "@unsw.edu.au" },
            };

            foreach (var tenant in tenants)
            {
                var principal = GetPrincipal(tenant.Value);
                var command = new CreateOrUpdateSettings(principal);
                Seed(command);
            }
        }