public async Task WhenBlogIsNotFound_ItShouldReturnFalse()
        {
            await this.DatabaseTestAsync(async testDatabase =>
            {
                this.target = new GetIsTestUserBlogDbStatement(testDatabase);

                await testDatabase.TakeSnapshotAsync();

                var result = await this.target.ExecuteAsync(BlogId);

                Assert.IsFalse(result);

                return(ExpectedSideEffects.None);
            });
        }
        public async Task WhenBlogBelongsToTestUser_ItShouldReturnTrue()
        {
            await this.DatabaseTestAsync(async testDatabase =>
            {
                this.target = new GetIsTestUserBlogDbStatement(testDatabase);

                await this.CreateDataAsync(testDatabase, true);
                await testDatabase.TakeSnapshotAsync();

                var result = await this.target.ExecuteAsync(BlogId);

                Assert.IsTrue(result);

                return(ExpectedSideEffects.None);
            });
        }
 public void Test()
 {
     this.target = new GetIsTestUserBlogDbStatement(new Mock <IFifthweekDbConnectionFactory>(MockBehavior.Strict).Object);
 }