コード例 #1
0
        public void TestHistoryActionParsing(string query, string uuid, string beaconId, string eventTime, BeaconEventType beaconEventType, bool send)
        {
            HistoryAction a = FileStorageHelper.ActionFromString(query);

            //fallback for unparsable data
            if (beaconId == null && eventTime == null)
            {
                Assert.IsNull(a);
                return;
            }

            Assert.AreEqual(beaconId, a.BeaconId);
            Assert.AreEqual(eventTime, a.ActionTime);
            Assert.AreEqual(uuid, a.EventId);
            Assert.AreEqual((int)beaconEventType, a.Trigger);
        }