108 references to SetValue
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (35)
ValidationsGenerator\ValidationsGenerator.ValidatableType.cs (35)
97type.GetProperty("IntegerWithRange")?.SetValue(instance, 5);
116type.GetProperty("IntegerWithRangeAndDisplayName")?.SetValue(instance, 5);
135type.GetProperty("PropertyWithMemberAttributes")?.SetValue(instance, null);
155subType.GetType().GetProperty("RequiredProperty")?.SetValue(subType, "");
156subType.GetType().GetProperty("StringWithLength")?.SetValue(subType, "way-too-long");
157type.GetProperty("PropertyWithMemberAttributes")?.SetValue(instance, subType);
183inheritanceType.GetType().GetProperty("RequiredProperty")?.SetValue(inheritanceType, "");
184inheritanceType.GetType().GetProperty("StringWithLength")?.SetValue(inheritanceType, "way-too-long");
185inheritanceType.GetType().GetProperty("EmailString")?.SetValue(inheritanceType, "not-an-email");
186type.GetProperty("PropertyWithInheritance")?.SetValue(instance, inheritanceType);
220subType1.GetType().GetProperty("RequiredProperty")?.SetValue(subType1, "");
221subType1.GetType().GetProperty("StringWithLength")?.SetValue(subType1, "way-too-long");
225subType2.GetType().GetProperty("RequiredProperty")?.SetValue(subType2, "valid");
226subType2.GetType().GetProperty("StringWithLength")?.SetValue(subType2, "way-too-long");
230subType3.GetType().GetProperty("RequiredProperty")?.SetValue(subType3, "valid");
231subType3.GetType().GetProperty("StringWithLength")?.SetValue(subType3, "valid");
238type.GetProperty("ListOfSubTypes")?.SetValue(instance, subTypeList);
268type.GetProperty("IntegerWithCustomValidationAttribute")?.SetValue(instance, 5); // Odd number, should fail
287type.GetProperty("PropertyWithMultipleAttributes")?.SetValue(instance, 5);
314type.GetProperty("IntegerWithCustomValidationAttribute")?.SetValue(instance, 3); // Odd number should fail
335type.GetProperty("IntegerWithRange")?.SetValue(instance, 50);
336type.GetProperty("IntegerWithRangeAndDisplayName")?.SetValue(instance, 50);
340subType1.GetType().GetProperty("RequiredProperty")?.SetValue(subType1, "valid");
341subType1.GetType().GetProperty("StringWithLength")?.SetValue(subType1, "valid");
342type.GetProperty("PropertyWithMemberAttributes")?.SetValue(instance, subType1);
346subType2.GetType().GetProperty("RequiredProperty")?.SetValue(subType2, "valid");
347subType2.GetType().GetProperty("StringWithLength")?.SetValue(subType2, "valid");
348type.GetProperty("PropertyWithoutMemberAttributes")?.SetValue(instance, subType2);
352inheritanceType.GetType().GetProperty("RequiredProperty")?.SetValue(inheritanceType, "valid");
353inheritanceType.GetType().GetProperty("StringWithLength")?.SetValue(inheritanceType, "valid");
354inheritanceType.GetType().GetProperty("EmailString")?.SetValue(inheritanceType, "test@example.com");
355type.GetProperty("PropertyWithInheritance")?.SetValue(instance, inheritanceType);
359type.GetProperty("ListOfSubTypes")?.SetValue(instance, emptyList);
362type.GetProperty("IntegerWithCustomValidationAttribute")?.SetValue(instance, 2); // Even number should pass
363type.GetProperty("PropertyWithMultipleAttributes")?.SetValue(instance, 12);
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Routing.Abstractions (1)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.Build (2)
Microsoft.Build.Engine.OM.UnitTests (2)
Microsoft.Build.Engine.UnitTests (3)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Utilities.Core (2)
Microsoft.Extensions.AI.Abstractions.Tests (6)
Microsoft.Extensions.Configuration.Binder (2)
Microsoft.Maui.Controls (3)
Microsoft.ML.Data (1)
Microsoft.ML.Tokenizers.Tests (2)
MSBuild (2)
PresentationFramework (1)
System.Composition.TypedParts (1)
System.Linq.Expressions (1)
System.Net.Security (5)
System.Private.DataContractSerialization (1)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (2)
System.Security.Cryptography (5)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.Tests (12)