public void Constructor_SetParameters_ParametersSet()
        {
            var getBlog = new GetBlog(BlogId);

            Assert.IsNotNull(getBlog);
            Assert.AreEqual(BlogId, getBlog.BlogId);
        }
 public async Task Retrieve_RequestNonExistentBlog_EmptyResultReturned()
 {
     var handler = new BlogQueryHandler(Context, Mapper.Object);
     var query = new GetBlog(Guid.NewGuid());
     var result = await handler.Retrieve(query);
     Assert.IsNull(result);
 }
        public async Task Retrieve_RequestPages_QueryResultReturned()
        {
            var handler = new BlogQueryHandler(Context, Mapper.Object);
            var query = new GetBlog(blogId1);
            var result = await handler.Retrieve(query);

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(BlogQueryResult));

            Assert.AreEqual(blogId1, result.Id);            
        }
 public void Constructor_UseEmptyGuid_Fails()
 {
     var getBlog = new GetBlog(Guid.Empty);
 }
 public async Task Retrieve_RequestEmptyGuidSiteID_Exception()
 {
     var handler = new BlogQueryHandler(Context, Mapper.Object);
     var query = new GetBlog(Guid.Empty);
     var result = await handler.Retrieve(query);
 }