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

            new Action(() => type = _creator.GenerateServant <T>())
            .Should().NotThrow();

            type.Should().NotBeNull();

            _objectId = (ulong)_random.Next();
            IServant servant = _creator.CreateServant(_endPoint.Object, _channel.Object, _objectId, subject);

            servant.Should().NotBeNull();
            servant.ObjectId.Should().Be(_objectId);
            servant.Subject.Should().BeSameAs(subject);

            return(servant);
        }
Ejemplo n.º 2
0
 /// <inheritdoc />
 public Type GenerateServant <T>()
 {
     return(_servantCreator.GenerateServant <T>());
 }