public void TestListDateTimePlugin() { var plugins = PluginLoader.Load("C:\\Users\\Max\\RiderProjects\\Lab Task 2\\Plugins\\bin\\Debug\\netstandard2.0\\Plugins.dll"); foreach (var plugin in plugins) { _faker.AddExtensionalDictionary(plugin.GetExtensionalGenerators()); } DateTimeListDTO dateTimeListDTO = _faker.Create <DateTimeListDTO>(); Assert.IsNotNull(dateTimeListDTO.myFriendsBirthdays); }
public static void Main(string[] args) { var faker = new Faker(); var plugins = PluginLoader.Load("C:\\Users\\Max\\RiderProjects\\Lab Task 2\\Plugins\\bin\\Debug\\netstandard2.0\\Plugins.dll"); foreach (var plugin in plugins) { faker.AddExtensionalDictionary(plugin.GetExtensionalGenerators()); } Console.WriteLine(faker.Create <BasicDTO1>()); }