public async Task HandleAsync_GivenEmptyDatabaseAndBatchSizeOne_LastInsertedSeiyuuIdShouldBeBiggerByOne() { // Given var dbContext = InMemoryDbProvider.GetDbContext(); var jikanServiceBuilder = new JikanServiceBuilder(); var s3Service = new S3ServiceStub(1); var handler = CreateHandler(dbContext, jikanServiceBuilder.Build(), s3Service, 1); // When await handler.HandleAsync(); // Then var state = await s3Service.GetBgJobsStateAsync(It.IsAny <string>()); state.LastCheckedSeiyuuMalId.Should().Be(2); }