public void DeleteNutrition_UriNotValid_ArgumentException() { //Arrange var validPath = "/test/"; Mock <AccessTokenManagerBaseStub> tokenManager = new Mock <AccessTokenManagerBaseStub>(); NutritionEndpoint nutritionRequest = new NutritionEndpoint(tokenManager.Object, new UsersModel { Nutrition = validPath }); //Act and assert Assert.Throws(typeof(ArgumentException), () => { nutritionRequest.DeleteNutrition("Not validPath."); }); }
public void DeleteNutrition_UriValid_DoesNotThrowArgumentException() { //Arrange var validPath = "/test/"; Mock <AccessTokenManagerBaseStub> tokenManager = new Mock <AccessTokenManagerBaseStub>(); NutritionEndpoint nutritionRequest = new NutritionEndpoint(tokenManager.Object, new UsersModel { Nutrition = validPath }); //Act and assert Assert.DoesNotThrow(() => { nutritionRequest.DeleteNutrition(validPath); }); }