public void try_get_no_exception() { _eventstore.Setup(x => x.GetEvents <FakeEntity>(Moq.It.IsAny <string>(), Moq.It.IsAny <Id>(), Moq.It.IsAny <Id[]>(), Moq.It.IsAny <long?>(), Moq.It.IsAny <int?>())) .Throws <NotFoundException>(); Assert.DoesNotThrowAsync(() => _repository.TryGet("test")); }
public void try_get_no_exception() { _streams.Setup(x => x.GetStream <Entity>(Moq.It.IsAny <string>(), new Id("test"), Moq.It.IsAny <IEnumerable <Id> >())).Throws <NotFoundException>(); Assert.DoesNotThrowAsync(() => _repository.TryGet("test")); }