public async void DoesValidatorPreventFromDeletingNotExistingRecipe() { var request = new DeleteRecipe(new Guid("E9AFD20D-C83C-493B-827B-2220433E4D5E")); var validator = new DeleteRecipeValidator(MockBuilder.BuildFakeRepository(), MockBuilder.BuildFakeCurrentUserService()); var result = await validator.ValidateAsync(request); result.IsValid.Should().BeFalse(); }
public async void DoesValidatorAllowCorrectRequest() { var request = new DeleteRecipe(new Guid("447EA0EF-F828-486A-91A9-0EDBC01D0B89")); var validator = new DeleteRecipeValidator(MockBuilder.BuildFakeRepository(), MockBuilder.BuildFakeCurrentUserService()); var result = await validator.ValidateAsync(request); result.IsValid.Should().BeTrue(); }