private void SecurityLoginsLog_D_Test()
        {
            var client = new SecurityLoginsLog.SecurityLoginsLogClient(_channel);

            SecurityLoginsLogProto proto = client.GetSecurityLoginsLog(new SecurityLoginsLogKey()
            {
                Id = _securityLoginLog.Id.ToString()
            });
            SecurityLoginsLogList protos = new SecurityLoginsLogList();

            protos.Items.Add(proto);
            client.DeleteSecurityLoginsLog(protos);
            proto = null;
            try
            {
                proto = client.GetSecurityLoginsLog(new SecurityLoginsLogKey()
                {
                    Id = _securityLoginLog.Id.ToString()
                });
            }
            catch (RpcException)
            {
            }
            Assert.IsNull(proto);
        }
        private SecurityLoginsLogProto CheckGetSecurityLoginsLog(SecurityLoginsLog.SecurityLoginsLogClient client
                                                                 , SecurityLoginsLogKey key, SecurityLoginsLogProto compare = null)
        {
            SecurityLoginsLogProto proto = null;

            try
            {
                proto = client.GetSecurityLoginsLog(key);
            }
            catch (RpcException)
            {
                Assert.Fail();
            }
            Assert.IsNotNull(proto);
            Assert.AreEqual(proto.Id, key.Id);
            if (compare != null)
            {
                Assert.AreEqual(proto.Login, compare.Login);
                Assert.AreEqual(proto.SourceIP, compare.SourceIP);
                Assert.AreEqual(proto.LogonDate.ToDateTime().Date, compare.LogonDate.ToDateTime().Date);
            }
            return(proto);
        }