public async Task ContainsByUserIdAndRecipeIdAsync_WithNonExistentUserIdAndRecipeId_ShouldReturnCorrectResult()
        {
            var errorMessagePrefix = "UserCookedRecipeService ContainsByUserIdAndRecipeIdAsync() method does not work properly.";

            // Arrange
            MapperInitializer.InitializeMapper();
            var context = ApplicationDbContextInMemoryFactory.InitializeContext();
            var userCookedRecipeRepository = new EfRepository <UserCookedRecipe>(context);
            var userCookedRecipeService    = new UserCookedRecipeService(userCookedRecipeRepository);

            await this.SeedDataAsync(context);

            var nonExistentUserId   = Guid.NewGuid().ToString();
            var nonExistentRecipeId = Guid.NewGuid().ToString();

            // Act
            var result = await userCookedRecipeService
                         .ContainsByUserIdAndRecipeIdAsync(nonExistentUserId, nonExistentRecipeId);

            // Assert
            Assert.False(result, errorMessagePrefix + " " + "Returns true.");
        }
        public async Task ContainsByUserIdAndRecipeIdAsync_WithExistentUserIdAndRecipeId_ShouldReturnCorrectResult()
        {
            var errorMessagePrefix = "UserCookedRecipeService ContainsByUserIdAndRecipeIdAsync() method does not work properly.";

            // Arrange
            MapperInitializer.InitializeMapper();
            var context = ApplicationDbContextInMemoryFactory.InitializeContext();
            var userCookedRecipeRepository = new EfRepository <UserCookedRecipe>(context);
            var userCookedRecipeService    = new UserCookedRecipeService(userCookedRecipeRepository);

            await this.SeedDataAsync(context);

            var userId   = context.Users.First(x => x.FullName == "User 1").Id;
            var recipeId = context.Recipes.First(x => x.Title == "Recipe 1").Id;

            // Act
            var result = await userCookedRecipeService
                         .ContainsByUserIdAndRecipeIdAsync(userId, recipeId);

            // Assert
            Assert.True(result, errorMessagePrefix + " " + "Returns false.");
        }