Exemplo n.º 1
0
        private T TestGenerate <T>()
        {
            Type type = null;

            new Action(() => type = _creator.GenerateProxy <T>())
            .ShouldNotThrow();

            type.Should().NotBeNull();

            _objectId = (ulong)_random.Next();
            var obj   = _creator.CreateProxy <T>(_endPoint.Object, _channel.Object, _objectId);
            var proxy = obj as IProxy;

            proxy.Should().NotBeNull();
            proxy.ObjectId.Should().Be(_objectId);

            return(obj);
        }
Exemplo n.º 2
0
 /// <inheritdoc />
 public Type GenerateProxy <T>()
 {
     return(_proxyCreator.GenerateProxy <T>());
 }