Ejemplo n.º 1
0
        public void TestAzLogEntryEntityConstructor()
        {
            AzLogEntryEntity azlee = new AzLogEntryEntity();

            azlee.PartitionKey = "Partition";
            azlee.RowKey = Guid.Empty.ToString();
            azlee.InstanceId = "a000";
            azlee.EventTickCount = 1;
            azlee.EventId = 2;
            azlee.Level = "Level";
            azlee.ApplicationName = "AppName";
            azlee.Pid = 3;
            azlee.Tid = 4;
            azlee.Message = "Message";

            AzLogEntry azle = AzLogEntry.Create(azlee);
            Assert.AreEqual("Partition", azle.Partition);
            Assert.AreEqual(Guid.Empty, azle.RowKey);
            Assert.AreEqual(1, azle.EventTickCount);
            Assert.AreEqual("AppName", azle.ApplicationName);
            Assert.AreEqual("Level", azle.Level);
            Assert.AreEqual(2, azle.EventId);
            Assert.AreEqual("0000A000", azle.InstanceId);
            Assert.AreEqual(3, azle.Pid);
            Assert.AreEqual(4, azle.Tid);
            Assert.AreEqual("Message", azle.Message);
        }
Ejemplo n.º 2
0
        public void TestAzLogEntryEntityConstructor()
        {
            AzLogEntryEntity azlee = new AzLogEntryEntity();

            azlee.PartitionKey    = "Partition";
            azlee.RowKey          = Guid.Empty.ToString();
            azlee.InstanceId      = "a000";
            azlee.EventTickCount  = 1;
            azlee.EventId         = 2;
            azlee.Level           = "Level";
            azlee.ApplicationName = "AppName";
            azlee.Pid             = 3;
            azlee.Tid             = 4;
            azlee.Message         = "Message";

            AzLogEntry azle = AzLogEntry.Create(azlee);

            Assert.AreEqual("Partition", azle.Partition);
            Assert.AreEqual(Guid.Empty, azle.RowKey);
            Assert.AreEqual(1, azle.EventTickCount);
            Assert.AreEqual("AppName", azle.ApplicationName);
            Assert.AreEqual("Level", azle.Level);
            Assert.AreEqual(2, azle.EventId);
            Assert.AreEqual("0000A000", azle.InstanceId);
            Assert.AreEqual(3, azle.Pid);
            Assert.AreEqual(4, azle.Tid);
            Assert.AreEqual("Message", azle.Message);
        }