Last active
February 28, 2021 08:31
-
-
Save kelumKP/277458167e2f7ca8f44368685c5acc59 to your computer and use it in GitHub Desktop.
Sample Initialize
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 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