Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions docs/docs/test-lifecycle/property-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,8 @@ public class PropertySetterTests
Console.WriteLine($"Property7: {Property7}");
}

// Static data source method for Property2
public static IEnumerable<string> GetMethodData()
{
yield return "method_data_1";
yield return "method_data_2";
}
// Static data source method for Property2 - returns a single value for property injection
public static string GetMethodData() => "method_data_value";
}

// Example model for ClassDataSource
Expand Down