static public async Task ClassInit(TestContext context) #endif { app = new KZApplication(test.Constants.MarketplaceUrl, test.Constants.AppName); await app.Initialize(); var user = await app.Authenticate(test.Constants.User, test.Constants.Password, test.Constants.Provider); sms = app.SmsSender["+17865475207"]; EnqueueTestComplete(); }
public void SetUp () { Console.WriteLine ("Setting up"); if (app==null) { app = new KZApplication(Constants.marketplace, Constants.application,Constants.applicationKey); app.Initialize().Wait(); app.Authenticate(Constants.user, Constants.pass, Constants.provider).Wait(); } if (sms == null) { sms = app.SmsSender["+13053038639"]; } }
private void AllocServices(JObject config) { Marketplace = new Marketplace(this, marketPlaceUri); Queue = new Queue(this, config.ValueUri("queue")); PubSubChannel = new PubSubChannel(this, config.ValueUri("pubsub"), config.ValueUri("ws")); Configuration = new Configuration(this, config.ValueUri("config")); SmsSender = new SmsSender(this, config.ValueUri("sms")); MailSender = new MailSender(this, config.ValueUri("email")); Logger = new Logging(this, config.ValueUri("logging")); Storage = new Storage(this, config.ValueUri("storage")); Notification = new Notification(this, config.ValueUri("notification")); Files = new Files(this, config.ValueUri("files")); Authentication = new Authentication(marketPlaceUri.Host, config.Value <JObject>("authConfig"), this.Name); Service = new Service(this, config.ValueUri("service")); DataSource = new DataSource(this, config.ValueUri("datasource")); }
private void AllocServices(JObject config) { #if !NET45 Notification = new Notification(this, config.ValueUri("notification")); PubSubChannel = new PubSubChannel(this, config.ValueUri("pubsub"), config.ValueUri("ws")); #endif Marketplace = new Marketplace(this, marketPlaceUri); Queue = new Queue(this, config.ValueUri("queue")); Configuration = new Configuration(this, config.ValueUri("config")); SmsSender = new SmsSender(this, config.ValueUri("sms")); MailSender = new MailSender(this, config.ValueUri("email")); Logger = new Logging(this, config.ValueUri("logging")); Storage = new Storage(this, config.ValueUri("storage")); Files = new Files(this, config.ValueUri("files")); Authentication = new Authentication(marketPlaceUri.Host, config.Value<JObject>("authConfig"), this.Name); Service = new Service(this, config.ValueUri("service")); DataSource = new DataSource(this, config.ValueUri("datasource")); }