Exemple #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //NCoreOptions options = HardCodedSettings.GetNCoreOptions();
            NCoreOptions options        = Program.GetNCoreOptions();
            var          factory        = new NCoreFactory(options);
            var          ephorteContext = factory.Create();

            _oms = new Oms((s) => textBox1.Text += Environment.NewLine + s, factory);
        }
        private static IEphorteContext GetContext()
        {
            var options = new NCoreOptions
            {
                NCoreBaseAddress   = "https://apps.elementscloud.no/ncore/",
                Database           = "934382404_PROD-934382404",
                Username           = "******",
                Password           = "******",
                ExternalSystemName = "INTEGRASJON_TEST",
                Role = ""
            };
            var factory = new NCoreFactory(options);

            return(factory.Create());
        }