コード例 #1
0
        public void GenerateOperationId()
        {
            const string OperationFullName = "IService.Method";

            var id1 = ClientOperationManager.GenerateOperationId(OperationFullName);
            var id2 = ClientOperationManager.GenerateOperationId(OperationFullName);

            Console.WriteLine(id1);
            Console.WriteLine(id2);

            StringAssert.Contains(OperationFullName, id1);
            StringAssert.Contains(OperationFullName, id2);
            Assert.AreNotEqual(id1, id2);
        }
コード例 #2
0
        public void BeforeEachTest()
        {
            _contract = new Mock <IDisposableCancellationContract>(MockBehavior.Strict);

            _sut = new ClientOperationManager(() => _contract.Object);
        }