public async Task WhenWeDoAPost_WeAddARecipe_AndWeWantToBeSureThatTheRecipeIsReturned() { //Arrange NutritionalInformationModel newNutritionalInformation = new NutritionalInformationModel { CreateDateTime = DateTime.Now, ModifiedDateTime = DateTime.Now, Calories = 3, Carbs = 6, CreatedByAuthor = "NutritionalInformationController Test", Fat = 6, Fibre = 6, Protein = 11, Salt = 8, Saturates = 9, Sugar = 6, RecipeModel = new RecipeModel { CookingTime = new TimeSpan(3, 00, 00), CreateDateTime = DateTime.Now, CreatedByAuthor = "Harry Lowe", Difficulty = Recipes.Business.Models.Enums.DifficultyModel.Average, Method = "Test for the NutritionalInformationController", ModifiedDateTime = DateTime.Now, PreparationTime = new TimeSpan(2, 20, 15), Serves = 5, Title = "Irish Stew", RecipeType = Recipes.Business.Models.Enums.RecipeTypeModel.Side } }; //Act NutritionalInformationModel nutritionalInformation = new NutritionalInformationModel(); var result = await nutritionalInformationController.Add(newNutritionalInformation); result.TryGetContentValue(out nutritionalInformation); //Assert Assert.IsNotNull(nutritionalInformation); Assert.AreEqual(nutritionalInformation.GetType(), typeof(NutritionalInformationModel)); Assert.IsTrue(nutritionalInformation.Id > 1); }