public void GlobalSetup()
 {
     uaa = UserAgentAnalyzer.NewBuilder()
           .WithoutCache()
           .HideMatcherLoadStats()
           .Build();
     uaa.Parse((string)null);
 }
        public UserAgentOverview Parse(string userAgentHeaderValue)
        {
            OrbintSoft.Yauaa.Analyzer.UserAgent userAgent = _analyzer.Parse(userAgentHeaderValue);

            UserAgentOverview dto = new UserAgentOverview();

            dto.AgentName    = userAgent.GetValue(OrbintSoft.Yauaa.Analyzer.UserAgent.AGENT_NAME);
            dto.AgentVersion = userAgent.GetValue(OrbintSoft.Yauaa.Analyzer.UserAgent.AGENT_VERSION);
            dto.DeviceClass  = userAgent.GetValue(OrbintSoft.Yauaa.Analyzer.UserAgent.DEVICE_CLASS);
            dto.DeviceName   = userAgent.GetValue(OrbintSoft.Yauaa.Analyzer.UserAgent.DEVICE_NAME);

            return(dto);
        }
 public UserAgent Android6Chrome46()
 {
     return(uaa.Parse("Mozilla/5.0 (Linux; Android 6.0; Nexus 6 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) " +
                      "Chrome/46.0.2490.76 Mobile Safari/537.36"));
 }