public async Task GetBookingsAsync_NoRestrictions_ShouldReturnTheBookings() { // Arrange paginatedBookings.Data = expectedBookings; paginatedBookings.Counts = new PaginatedCountModel(paging, expectedBookings.Count()); moqRepository.Setup(x => x.GetBookingsAsync(It.IsAny <PagingModel>())).ReturnsAsync(paginatedBookings); // Act PaginatedModel <Booking> actualPaginatedBookings = await service.GetBookingsAsync(paging); // Assert moqRepository.VerifyAll(); Assert.AreEqual(paginatedBookings, actualPaginatedBookings); }