public async Task CountShouldReturnCorrectCountOfPicturesByAdvertisementId() { // Arrange var db = this.Context; this.PopulateData(db); var picturesService = new PictureService(db); var advertisementId = 1; // Act var result = await picturesService.Count(advertisementId); // Assert result .Should() .Be(3); }