Example #1
0
        public async Task GetReturnsRootOfKnownId()
        {
            using (var fixture = new MsSqlStreamStoreFixture("dbo"))
            {
                using (var store = await fixture.GetMsSqlStreamStore())
                {
                    var sut = new RepositoryScenarioBuilder(store)
                              .ScheduleAppendToStream(_model.KnownIdentifier, new EventStub(1))
                              .BuildForAsyncRepository();

                    var result = await sut.GetAsync(_model.KnownIdentifier);

                    result.RecordedEvents.ShouldBeEquivalentTo(new[] { new EventStub(1) });
                }
            }
        }