AsyncSnapshotableRepositoryTests.WithEmptyStoreAndEmptyUnitOfWorkAndNoSnapshot.GetAsyncThrows C# (CSharp) Method

GetAsyncThrows() private method

private GetAsyncThrows ( ) : void
return void
            public void GetAsyncThrows()
            {
                var exception =
                    Assert.ThrowsAsync<AggregateNotFoundException>(async () => { var _ = await _sut.GetAsync(_model.UnknownIdentifier); });
                Assert.That(exception.Identifier, Is.EqualTo(_model.UnknownIdentifier));
                Assert.That(exception.ClrType, Is.EqualTo(typeof (SnapshotableAggregateRootEntityStub)));
            }