diff --git a/ShopNCook.csproj b/ShopNCook.csproj index 0625b03..9352320 100644 --- a/ShopNCook.csproj +++ b/ShopNCook.csproj @@ -33,8 +33,10 @@ + + diff --git a/Tests/AccountRecipesPreferencesTests.cs b/Tests/AccountRecipesPreferencesTests.cs index cb3f499..22b6545 100644 --- a/Tests/AccountRecipesPreferencesTests.cs +++ b/Tests/AccountRecipesPreferencesTests.cs @@ -1,17 +1,17 @@ -using LocalServices; -using LocalServices.Data; -using Models; +using LocalServices; +using LocalServices.Data; +using Models; using System.Collections.Immutable; -namespace Tests -{ - public class AccountRecipesPreferencesTests +namespace Tests +{ + public class AccountRecipesPreferencesTests { - private static readonly User SAMPLE_USER = new User(new Uri("https://www.referenseo.com/wp-content/uploads/2019/03/image-attractive-960x540.jpg"), "user", Guid.NewGuid()); - private static readonly Account SAMPLE_ACC = new Account(SAMPLE_USER, "mail"); - private static readonly Recipe SAMPLE_RECIPE = new RecipeBuilder("foo", SAMPLE_USER).Build(); - - [Fact] + private static readonly User SAMPLE_USER = new User(new Uri("https://www.referenseo.com/wp-content/uploads/2019/03/image-attractive-960x540.jpg"), "user", Guid.NewGuid()); + private static readonly Account SAMPLE_ACC = new Account(SAMPLE_USER, "mail"); + private static readonly Recipe SAMPLE_RECIPE = new RecipeBuilder("foo", SAMPLE_USER).Build(); + + [Fact] public void Review() { var fav_inserted = false; @@ -26,8 +26,8 @@ namespace Tests pref.SetReviewScore(SAMPLE_RECIPE.Info, 3); Assert.True(fav_inserted); Assert.True(rate_inserted); - } - + } + public void AddWeeklyList() { var inserted = false; @@ -41,6 +41,6 @@ namespace Tests pref.AddToWeeklyList(SAMPLE_RECIPE.Info, 88); Assert.True(inserted); Assert.True(pref.GetWeeklyList().Contains((SAMPLE_RECIPE.Info, 88))); - } - } -} + } + } +} diff --git a/Views/SearchPage.xaml.cs b/Views/SearchPage.xaml.cs index 5f13202..e6a81bc 100644 --- a/Views/SearchPage.xaml.cs +++ b/Views/SearchPage.xaml.cs @@ -16,7 +16,7 @@ public partial class SearchPage : ContentPage BindingContext = this; this.recipesService = recipes; this.preferences = preferences; - InitializeComponent(); + InitializeComponent(); } public void MakeSearch(string prompt)