Esempio n. 1
0
        public async Task MethodTypeName()
        {
            var schema = await _serviceProxyProvider.GetSchema();

            var iface            = schema.Interfaces.First(_ => _.Name == typeof(ICalculatorService).FullName);
            var schemaTestMethod = iface.Methods.FirstOrDefault(_ => _.Name == nameof(ICalculatorService.Add));

            Assert.IsNotNull(schemaTestMethod, "Service schema did not return the method Add");
            Assert.AreEqual(typeof(ICalculatorService).FullName, iface.Name);
        }