diff --git a/PlanB.Butler.Services/PlanB.Butler.Services.Test/MealServiceTest.cs b/PlanB.Butler.Services/PlanB.Butler.Services.Test/MealServiceTest.cs index c575fcf..294a4ca 100644 --- a/PlanB.Butler.Services/PlanB.Butler.Services.Test/MealServiceTest.cs +++ b/PlanB.Butler.Services/PlanB.Butler.Services.Test/MealServiceTest.cs @@ -198,7 +198,6 @@ public void IsDateInRangeCheckEndEqualCheck() [TestMethod] public void ValidateMealTestOk() { - ErrorModel errorModel = null; Guid correlationId = Guid.NewGuid(); MealModel mealModel = new MealModel() @@ -208,7 +207,7 @@ public void ValidateMealTestOk() Date = DateTime.Now, }; - var result = MealService.Validate(mealModel, correlationId, out errorModel); + var result = MealService.Validate(mealModel, correlationId, out ErrorModel errorModel); Assert.AreEqual(true, result); Assert.IsNull(errorModel); } @@ -219,7 +218,6 @@ public void ValidateMealTestOk() [TestMethod] public void ValidateMealTestMissingMeal() { - ErrorModel errorModel = null; Guid correlationId = Guid.NewGuid(); MealModel mealModel = new MealModel() @@ -228,7 +226,7 @@ public void ValidateMealTestMissingMeal() Date = DateTime.Now, }; - var result = MealService.Validate(mealModel, correlationId, out errorModel); + var result = MealService.Validate(mealModel, correlationId, out ErrorModel errorModel); Assert.AreEqual(false, result); Assert.IsNotNull(errorModel); }