public async Task Should_not_add_error_if_double_value_found_with_same_content_id() { var ctx = ValidationTestExtensions.CreateContext(); var sut = new UniqueValidator(Check(ctx.ContentId)); await sut.ValidateAsync(12.5, ctx, ValidationTestExtensions.CreateFormatter(errors)); Assert.Empty(errors); }
public async Task Should_not_add_error_if_same_content_with_double_value_found() { var ctx = ValidationTestExtensions.CreateContext().Nested("property").Nested("iv"); var sut = new UniqueValidator(FoundDuplicates(ctx.ContentId)); await sut.ValidateAsync(12.5, ctx, ValidationTestExtensions.CreateFormatter(errors)); Assert.Empty(errors); }