{"id":14969347,"url":"https://github.com/marcusoftnet/specflow.assist.dynamic","last_synced_at":"2025-10-30T01:30:52.803Z","repository":{"id":138480280,"uuid":"2284555","full_name":"marcusoftnet/SpecFlow.Assist.Dynamic","owner":"marcusoftnet","description":"Extension methods to create dynamic objects from SpecFlow tables","archived":false,"fork":false,"pushed_at":"2020-09-21T17:45:36.000Z","size":13263,"stargazers_count":51,"open_issues_count":8,"forks_count":27,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-02-02T05:51:16.144Z","etag":null,"topics":["c-sharp","cucumber","specflow","specflow-table"],"latest_commit_sha":null,"homepage":"https://github.com/marcusoftnet/SpecFlow.Assist.Dynamic","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcusoftnet.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-08-28T18:55:39.000Z","updated_at":"2024-04-02T18:53:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e8df513-92be-42e4-8540-8f9ff3b2157d","html_url":"https://github.com/marcusoftnet/SpecFlow.Assist.Dynamic","commit_stats":{"total_commits":87,"total_committers":9,"mean_commits":9.666666666666666,"dds":0.1839080459770115,"last_synced_commit":"7aaf7738ff8bcb6c38dc73c8d7222356d7191fad"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusoftnet%2FSpecFlow.Assist.Dynamic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusoftnet%2FSpecFlow.Assist.Dynamic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusoftnet%2FSpecFlow.Assist.Dynamic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusoftnet%2FSpecFlow.Assist.Dynamic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcusoftnet","download_url":"https://codeload.github.com/marcusoftnet/SpecFlow.Assist.Dynamic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238920711,"owners_count":19552672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","cucumber","specflow","specflow-table"],"created_at":"2024-09-24T13:41:43.738Z","updated_at":"2025-10-30T01:30:52.459Z","avatar_url":"https://github.com/marcusoftnet.png","language":"C#","readme":"# SpecFlow.Assist.Dynamic\n\nSpecFlow.Assist.Dynamic is a couple of simple extension methods for the SpecFlow Table object that helps you to write less code. \n\nWhat would you rather write? \nThis:\n```c#\n[Binding]\npublic class StepsUsingStaticType\n{\n    private Person _person;\n\n    [Given(@\"I create an instance from this table\")]\n    public void GivenICreateAnInstanceFromThisTable(Table table)\n    {\n        _person = table.CreateInstance\u003cPerson\u003e();\n    }\n\n    [Then(@\"the Name property on Person should equal '(.*)'\")]\n    public void PersonNameShouldBe(string expectedValue)\n    {\n        Assert.AreEqual(expectedValue, _person.Name);\n    }\n}\n\n// And then make sure to not forget defining a separate Person class for testing, \n// since you don't want to reuse the one your system under test is using - that's bad practice\n\n// Should probably be in another file too...\n// might need unit tests if the logic is complicated\npublic class Person\n{\n    public string Name { get; set; }\n    public int Age { get; set; }\n    public DateTime BirthDate { get; set; }\n    public double LengthInMeters { get; set; }\n}\n```\n    \nOr this:  \n```c#\n[Binding]\npublic class StepsUsingDynamic\n{\n    private dynamic _instance;\n\n    [Given(@\"I create an instance from this table\")]\n    public void c(dynamic instance) { _instance = instance; }\n\n    [Then(@\"the Name property should equal '(.*)'\")]\n    public void NameShouldBe(string expectedValue) { Assert.AreEqual(expectedValue, _instance.Name);  }\n}\n```\nThe later version uses SpecFlow.Assist.Dynamic. Shorter, sweater and more fun!\n\n\u003e well, this is may be one of the best usecase for dynamic i have ever seen\n\u003e\u003e A happy SpecFlow.Assists.Dynamic user\n\nFull [documentation on the wiki](https://github.com/marcusoftnet/SpecFlow.Assist.Dynamic/wiki/Documentation)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcusoftnet%2Fspecflow.assist.dynamic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcusoftnet%2Fspecflow.assist.dynamic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcusoftnet%2Fspecflow.assist.dynamic/lists"}