Esempio n. 1
0
        public void TestAddConfig()
        {
            OptionService service  = GetService();
            var           account1 = service.AddAccount("account1", "*****@*****.**");

            var appli       = service.AddApplication(account1.Id, "appl1");
            var environment = service.AddEnvironment(account1.Id, "env1");
            var type        = service.AddType(account1.Id, "type1", ".json", "validation1", "");

            service.AddOption(account1.Id, "appl1", "env1", "type1", "maconfig", "maconfig");


            var i = service.Option(account1.Id, "appl1", "env1", "maconfig", "type1");
        }
Esempio n. 2
0
        public void TestAddApplication()
        {
            OptionService service = GetService();

            var account1 = service.AddAccount("account1", "*****@*****.**");

            var application1 = service.AddApplication(account1.Id, "application1");
            var appl1        = service.GetApplications(account1.Id).FirstOrDefault(c => c.Id == application1.Id);

            Assert.AreEqual(appl1, application1);
            service.DeleteApplication(application1);
            var srv = service.GetApplications(account1.Id).FirstOrDefault(c => c.Id == application1.Id);

            Assert.AreEqual(srv, null);
        }