Example #1
0
        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);
            mail = app.MailSender;
            EnqueueTestComplete();
        }
Example #2
0
        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);

            mail = app.MailSender;
            EnqueueTestComplete();
        }
Example #3
0
 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"));
 }
Example #4
0
		public void SetUp ()
		{
			Console.WriteLine ("Setting up");
			Stopwatch sw = new Stopwatch();
			sw.Start();

			if (app==null) {
				app = new KZApplication(Constants.marketplace, Constants.application,Constants.applicationKey);
				app.Initialize().Wait();
				app.Authenticate(Constants.user, Constants.pass, Constants.provider).Wait();
			}
			sw.Stop();
			Console.WriteLine("Elapsed={0}",sw.Elapsed);

			if (mail == null) {
				mail = app.MailSender;
			}
		}
Example #5
0
        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"));
        }