Created
May 29, 2012 00:43
-
-
Save dkarzon/2821914 to your computer and use it in GitHub Desktop.
DataGen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IValueProvider | |
{ | |
object GetValue(); | |
} | |
public interface IProviderSelector | |
{ | |
IValueProvider GetProvider(System.Reflection.PropertyInfo prop, List<IValueProvider> providers); | |
} | |
public class DataGen | |
{ | |
public List<IValueProvider> AvailableProviders { get; set; } | |
public IProviderSelector ProviderSelector { get; set; } | |
public T GenerateData<T>() | |
{ | |
//for each property in T | |
//get the ValueProvider | |
//Call GetValue() | |
throw new NotImplementedException(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment