From 16b5ddedb1c89c0bdad56eab384f8e6cecaf2107 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Tue, 23 May 2023 07:07:16 +0300 Subject: Rename Magic to Guess --- RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs | 4 +- RhSolutions.AddIn/Controllers/RibbonController.cs | 2 +- RhSolutions.AddIn/Services/GuessReader.cs | 190 +++++++++++++++++++++ RhSolutions.AddIn/Services/MagicReader.cs | 190 --------------------- RhSolutions.AddIn/Services/ReaderFactory.cs | 2 +- RhSolutions.AddIn/Tools/GuessTool.cs | 23 +++ RhSolutions.AddIn/Tools/MagicTool.cs | 23 --- RhSolutions.AddIn/Tools/ToolFactory.cs | 2 +- RhSolutions.Tests/CanDoGuess.cs | 42 +++++ RhSolutions.Tests/CanDoMagic.cs | 44 ----- .../TestWorkbooks/TargetSpecificationGuess.xlsx | Bin 0 -> 11597 bytes .../TestWorkbooks/TargetSpecificationMagic.xlsx | Bin 11597 -> 0 bytes .../TestWorkbooks/TestSpecificationGuess.xlsx | Bin 0 -> 11669 bytes .../TestWorkbooks/TestSpecificationMagic.xlsx | Bin 11669 -> 0 bytes 14 files changed, 260 insertions(+), 262 deletions(-) create mode 100644 RhSolutions.AddIn/Services/GuessReader.cs delete mode 100644 RhSolutions.AddIn/Services/MagicReader.cs create mode 100644 RhSolutions.AddIn/Tools/GuessTool.cs delete mode 100644 RhSolutions.AddIn/Tools/MagicTool.cs create mode 100644 RhSolutions.Tests/CanDoGuess.cs delete mode 100644 RhSolutions.Tests/CanDoMagic.cs create mode 100644 RhSolutions.Tests/TestWorkbooks/TargetSpecificationGuess.xlsx delete mode 100644 RhSolutions.Tests/TestWorkbooks/TargetSpecificationMagic.xlsx create mode 100644 RhSolutions.Tests/TestWorkbooks/TestSpecificationGuess.xlsx delete mode 100644 RhSolutions.Tests/TestWorkbooks/TestSpecificationMagic.xlsx diff --git a/RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs b/RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs index 0e3ef77..8f5fd71 100644 --- a/RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs +++ b/RhSolutions.AddIn/AddIn/RhSolutionsAddIn.cs @@ -36,8 +36,8 @@ public sealed class RhSolutionsAddIn : IExcelAddIn Services.AddSingleton(); Services.AddTransient() .AddTransient(s => s.GetService()); - Services.AddTransient() - .AddTransient(s => s.GetService()); + Services.AddTransient() + .AddTransient(s => s.GetService()); Services.AddSingleton(); diff --git a/RhSolutions.AddIn/Controllers/RibbonController.cs b/RhSolutions.AddIn/Controllers/RibbonController.cs index bc72081..c57a374 100644 --- a/RhSolutions.AddIn/Controllers/RibbonController.cs +++ b/RhSolutions.AddIn/Controllers/RibbonController.cs @@ -27,7 +27,7 @@ public class RibbonController : ExcelRibbon