示例#1
0
        public void new_not_null()
        {
            var entity = _repository.New(Guid.NewGuid());

            Assert.NotNull(entity);
        }
示例#2
0
        public void entity_private_constructor_with_argument()
        {
            var repo = new Aggregates.Internal.EntityRepository <Guid, BadEntity2>(Guid.NewGuid(), _stream.Object, _builder.Object);

            Assert.Throws <AggregateException>(() => repo.New(Guid.NewGuid()));
        }