Exemplo n.º 1
0
 public void SaveOrUpdate(Configuration configuration)
 {
     using (DomumContext context = new DomumContext())
     {
         context.Configurations.Add(configuration);
         context.SaveChanges();
     }
 }
        public void UT_Configuration_Create()
        {
            var newConfiguration = new Configuration()
            {
                ConfigID = 2,
                ConfigKey = "TEST",
                ConfigValue = "Ruben"
            };

            var configurationRepository = new ConfigurationRepository();
            configurationRepository.SaveOrUpdate(newConfiguration);
        }