Exemplo n.º 1
0
 /// <summary>
 /// Test setup
 /// </summary>
 public ConsentTests()
 {
     CountlyImpl.SetPCLStorageIfNeeded();
     Countly.Halt();
     TestHelper.CleanDataFiles();
     Countly.Instance.deferUpload = false;
 }
 /// <summary>
 /// Test setup
 /// </summary>
 public LegacyInitTests()
 {
     CountlyImpl.SetPCLStorageIfNeeded();
     Countly.Halt();
     TestHelper.CleanDataFiles();
     CountlyImpl.StartLegacyCountlySession(ServerInfo.serverURL, ServerInfo.appKey, ServerInfo.appVersion).Wait();
 }
        /// <summary>
        /// Used for testing legacy session control
        /// </summary>
        public CountlyTestCases()
        {
            CountlyImpl.SetPCLStorageIfNeeded();
            Countly.Halt();
            TestHelper.CleanDataFiles();
            CountlyConfig cc = TestHelper.CreateConfig();

            Countly.Instance.Init(cc).Wait();
            Countly.Instance.SessionBegin().Wait();
        }
        public static async void CleanDataFiles()
        {
            CountlyImpl.SetPCLStorageIfNeeded();

            Storage.Instance.DeleteFile(Countly.eventsFilename).Wait();
            Storage.Instance.DeleteFile(Countly.exceptionsFilename).Wait();
            Storage.Instance.DeleteFile(Countly.sessionsFilename).Wait();
            Storage.Instance.DeleteFile(Countly.unhandledExceptionFilename).Wait();
            Storage.Instance.DeleteFile(Countly.userDetailsFilename).Wait();
            Storage.Instance.DeleteFile(Countly.storedRequestsFilename).Wait();
            Storage.Instance.DeleteFile(Device.deviceFilename).Wait();
        }
        /// <summary>
        /// Test setup
        /// </summary>
        public ThreadingTestCases()
        {
            threadSync = new ManualResetEvent(false);
            CountlyImpl.SetPCLStorageIfNeeded();
            Countly.Halt();
            TestHelper.CleanDataFiles();
            //Countly.Instance.deferUpload = true;

            CountlyConfig cc = TestHelper.CreateConfig();

            Countly.Instance.Init(cc).Wait();
            Countly.Instance.SessionBegin().Wait();
        }
Exemplo n.º 6
0
 /// <summary>
 /// Test setup
 /// </summary>
 public DataStructureSerializationTests()
 {
     CountlyImpl.SetPCLStorageIfNeeded();
     Countly.Halt();
     TestHelper.CleanDataFiles();
 }