static void Main(string[] args) { var cleaningService = new CleaningService(); var instructions = new Instruction(); var result = cleaningService.Clean(instructions); Console.WriteLine(@$ "Result from the cleaning: noOfCommands: {result.NoOfCommands}, uniqueSpotsCleaned: {result.UniqeLocationsCleaned}"); }
public void Save(Instruction instruction) { var result = cleaningService.Clean(instruction); string sql = @$ " INSERT INTO executions ( Id ,NoOfCommands ,UniqeLocationsCleaned ,Timestamp ,Duration ) VALUES ( NEWID() ,{result.NoOfCommands}
public void CleanText_VerifyResult(string value, string expectedResult) { var result = _cleaningService.Clean(value); Assert.True(result == expectedResult, $"{value} should match {expectedResult}"); }