Skip to content

Instantly share code, notes, and snippets.

@kelumKP
Last active February 28, 2021 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelumKP/277458167e2f7ca8f44368685c5acc59 to your computer and use it in GitHub Desktop.
Save kelumKP/277458167e2f7ca8f44368685c5acc59 to your computer and use it in GitHub Desktop.
Sample Initialize
public class SampleInitialize
{
private readonly ISampleService _oSampleService;
public SampleInitialize(ISampleService oSampleService)
{
_oSampleService = oSampleService;
}
public void Run()
{
var _list = _oSampleService.GetSampleList();
foreach (var item in _list)
{
Console.WriteLine(item.ID.ToString() + ". " + item.Name);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment