public FirebaseTests(ITestOutputHelper output) { ShinyHost.Init(TestStartup.CurrentPlatform, new ActionStartup { BuildServices = x => x.UseFirebaseMessaging <TestPushDelegate>(), BuildLogging = x => x.AddXUnit(output) }); this.pushManager = (IPushTagSupport)ShinyHost.Resolve <IPushManager>(); var creds = GoogleCredential.FromJson(JsonConvert.SerializeObject(new TestGoogleCredential { ProjectId = Secrets.Values.GoogleCredentialProjectId, PrivateKeyId = Secrets.Values.GoogleCredentialPrivateKeyId, PrivateKey = Secrets.Values.GoogleCredentialPrivateKey, ClientId = Secrets.Values.GoogleCredentialClientId, ClientEmail = Secrets.Values.GoogleCredentialClientEmail, ClientCertUrl = Secrets.Values.GoogleCredentialClientCertUrl })); FirebaseApp.Create(new AppOptions { Credential = creds }); }
public FirebaseTests(ITestOutputHelper output) { this.output = output; ShinyHost.Init(TestStartup.CurrentPlatform, new ActionStartup { BuildServices = x => x.UseFirebaseMessaging <TestPushDelegate>( //new FirebaseConfiguration( //"1:29585461192:ios:fd58dc671e66c940313afd", //"29585461192", //"AIzaSyBQx5SBjutEx4VQUs5_ZDEzFsXPBPnf9tw" //) ), BuildLogging = x => x.AddXUnit(output) }); this.pushManager = (IPushTagSupport)ShinyHost.Resolve <IPushManager>(); var creds = GoogleCredential.FromJson(JsonConvert.SerializeObject(new TestGoogleCredential { ProjectId = Secrets.Values.GoogleCredentialProjectId, PrivateKeyId = Secrets.Values.GoogleCredentialPrivateKeyId, PrivateKey = Secrets.Values.GoogleCredentialPrivateKey, ClientId = Secrets.Values.GoogleCredentialClientId, ClientEmail = Secrets.Values.GoogleCredentialClientEmail, ClientCertUrl = Secrets.Values.GoogleCredentialClientCertUrl })); FirebaseApp.Create(new AppOptions { Credential = creds }); }
public AzureNotificationHubTests(ITestOutputHelper output) { ShinyHost.Init(TestStartup.CurrentPlatform, new ActionStartup { BuildServices = x => x.UsePushAzureNotificationHubs <TestPushDelegate>( Secrets.Values.AzureNotificationHubListenerConnectionString, Secrets.Values.AzureNotificationHubName ), BuildLogging = x => x.AddXUnit(output) }); this.pushManager = (IPushTagSupport)ShinyHost.Resolve <IPushManager>(); this.hubClient = NotificationHubClient.CreateClientFromConnectionString( Secrets.Values.AzureNotificationHubFullConnectionString, Secrets.Values.AzureNotificationHubName ); }