Пример #1
0
        public void ImplicitId()
        {
            var operation = TypeExtensions.GetAllServiceImplmentations <IServiceWithOneMinimalOperation>();
            var ops       = DispatchFactory.CreateOperations(operation);

            Assert.AreEqual(1, ops.Count);
        }
Пример #2
0
        public void ExplicitId()
        {
            var operation = TypeExtensions.GetAllServiceImplmentations <IServiceWithOneMinimalInteopOperation>();
            var ops       = DispatchFactory.CreateOperations(operation);

            Assert.AreEqual(1, ops.Count);
            Assert.AreEqual(OperationDispId, ops.Values.First().Identifier);
        }