Esempio n. 1
0
        public async Task GetServerInfo_ThrowsNotFoundOnNonexistent()
        {
            var endpoint = "NonexistentEndpoint";

            try
            {
                await statistics.GetServerInfo(endpoint);
            }
            catch (Exception e)
            {
                Assert.IsTrue(e is NotFoundException);
            }
        }
Esempio n. 2
0
 public async Task <ServerInfo> GetServerInfo(string endpoint)
 {
     return(await statistics.GetServerInfo(endpoint));
 }