public void new_not_null() { var entity = _repository.New(Guid.NewGuid()); Assert.NotNull(entity); }
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())); }