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); pubsub = app.PubSubChannel["test"]; EnqueueTestComplete(); }
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")); }