public void GetDetailsShouldReturnCorrectDataFromDb() { // Arrange var db = this.Context; this.PopulateData(db); var advertisementsService = new AdvertisementService(db); var advertisementId = 1; // Act var result = advertisementsService.GetDetails(advertisementId); // Assert result .Id .Should() .Be(advertisementId); result .Name .Should() .Be("very good one"); result .Description .Should() .Be("need to be in that site"); result .Price .Should() .Be(300); }