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); }
public void BeforeEachTest() { _contract = new Mock <IDisposableCancellationContract>(MockBehavior.Strict); _sut = new ClientOperationManager(() => _contract.Object); }