示例#1
0
        public void GetSync_GetFactorialGenericSync()
        {
            var response = CreateServiceClient().Get(new GetFactorialSync {
                ForNumber = Param
            });

            Assert.That(response.Result, Is.EqualTo(GetFactorialAsyncService.GetFactorial(Param)));
        }
示例#2
0
        public async Task GetAsync_GetFactorialNewTcsAsync()
        {
            var response = await CreateServiceClient().GetAsync(new GetFactorialNewTcsAsync {
                ForNumber = Param
            });

            Assert.That(response.Result, Is.EqualTo(GetFactorialAsyncService.GetFactorial(Param)));
        }