void Should_Favorite_An_Ad_Successfully_With_Correct_Ad_Id_And_User_Id_And_Manual_Mode() { var userId = ctx.Users.First(x => x.Username == "User1").Id; var adId = ctx.Ads.First(x => x.Title == "Ad1").Id; var result = favoritesService.FavoriteAnAd(adId, userId, SaveTypes.Manual); Assert.True(result); Assert.Equal(1, ctx.Favorites.Where(x => x.AdId == adId && x.UserId == userId).Count()); }