Skip to content

Commit

Permalink
PlanBGmbH#66 Clean Up
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusMeyer13 committed Mar 2, 2020
1 parent a3f8c78 commit 2b3b774
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ public void IsDateInRangeCheckEndEqualCheck()
[TestMethod]
public void ValidateMealTestOk()
{
ErrorModel errorModel = null;
Guid correlationId = Guid.NewGuid();

MealModel mealModel = new MealModel()
Expand All @@ -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);
}
Expand All @@ -219,7 +218,6 @@ public void ValidateMealTestOk()
[TestMethod]
public void ValidateMealTestMissingMeal()
{
ErrorModel errorModel = null;
Guid correlationId = Guid.NewGuid();

MealModel mealModel = new MealModel()
Expand All @@ -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);
}
Expand Down

0 comments on commit 2b3b774

Please sign in to comment.