public async Task CallingGetFeaturedImageCallsQueryGet() { var featuredImageQueryMock = new Mock <IQuery <FeaturedImageViewModel, QueryFilter> >(); var controller = new ImagesController(null, featuredImageQueryMock.Object, null); await controller.GetFeaturedImage().ConfigureAwait(false); featuredImageQueryMock.Verify(x => x.Get(It.IsAny <QueryFilter>())); }