public async Task GetAllPagedListingAsync_WithSearchTokenAndIsDeletedTrue_ShouldReturnPagedDeletedCategories() { // Arrange FitStoreDbContext database = this.Database; DatabaseHelper.SeedData(database); IManagerCategoryService managerCategoryService = new ManagerCategoryService(database); // Act IEnumerable <CategoryAdvancedServiceModel> result = await managerCategoryService.GetAllPagedListingAsync(true, "category", page); // Assert result.Count().Should().Be(3); result.First().Id.Should().Be(firstDeletedCategoryId); result.First().Name.Should().Be(firstDeletedCategoryName); result.Last().Id.Should().Be(lastDeletedCategoryId); result.Last().Name.Should().Be(lastDeletedCategoryName); }