Ejemplo n.º 1
0
        public void ValidateInstrumentGetContainer()
        {
            ManagementTestClient client = InstrumentClient(new ManagementTestClient());
            var testResources           = client.GetTestResourceContainer();

            Assert.AreEqual("TestResourceContainerProxy", testResources.GetType().Name);
            Assert.AreEqual("success", testResources.Method());
        }
Ejemplo n.º 2
0
        public async Task ValidateInstrumentPhPageable()
        {
            ManagementTestClient client = InstrumentClient(new ManagementTestClient());
            var testResources           = client.GetTestResourceContainer();

            await foreach (var item in testResources.ListAsync())
            {
                Assert.AreEqual("TestResourceProxy", item.GetType().Name);
                Assert.AreEqual("success", item.Method());
            }
        }