YesSql.Tests.CoreTests.ShouldGetDocumentById C# (CSharp) Method

ShouldGetDocumentById() private method

private ShouldGetDocumentById ( ) : Task
return Task
        public async Task ShouldGetDocumentById()
        {
            int circleId;

            using (var session = _store.CreateSession())
            {
                var circle = new Circle
                {
                    Radius = 10
                };

                session.Save(circle);
                await session.CommitAsync();

                circleId = circle.Id;
            }

            using (var session = _store.CreateSession())
            {
                var circle = await session.GetAsync<Circle>(circleId);

                Assert.NotNull(circle);
            }
        }
CoreTests