예제 #1
0
        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}");
        }
예제 #2
0
        public void Save(Instruction instruction)
        {
            var    result = cleaningService.Clean(instruction);
            string sql    = @$ " INSERT INTO executions
                                ( Id
                                 ,NoOfCommands
                                 ,UniqeLocationsCleaned 
                                 ,Timestamp
                                 ,Duration  )

                               VALUES
                                (  NEWID()
                                 ,{result.NoOfCommands}
예제 #3
0
        public void CleanText_VerifyResult(string value, string expectedResult)
        {
            var result = _cleaningService.Clean(value);

            Assert.True(result == expectedResult, $"{value} should match {expectedResult}");
        }