Giter VIP home page Giter VIP logo

wordsearcher's Introduction

WordSearcher

This is a sample test of a console application that can process all the text files inside a folder and search words in that files.

This application has some values that can be set up on AppSettings.file to change the behavior of the application:

  • "finishWord": this is the text that the user should write to finish the application.
  • "punctuationMarks": these are the punctuation marks that are going to be omitted when the application reads all the text of a file.
  • "textExtension": this is the file extension of a text file. For this application, it holds only one file extension, but in the future, it can be several splits by commas.
  • "numberOfResultsToShow": this is the number of results to display on the console.

How to run the application

Write the following command on the prompt: "WordSearcher.exe PATH_OF_THE_FOLDER_TO_SEARCH", where PATH_OF_THE_FOLDER_TO_SEARCH is the path of the folder to search.

Architecture

This application has been done following a DDD architecture following SOLID and Clean Code principles.

I decided to use:

  • Unity as Inversion of Control Container
  • Log4Net is a log management tool. The logs will be shown inside the console and in a text file on C:\Logs. This configuration can be changed on the log4net.config file inside the Config folder.
  • MsTest as Unit Testing Manager.
  • FakeItEasy is a Nuget that helps to make fake objects and mocks.

Last considerations

This solution has been done with a Visual Studio Community 2019, so it doesn't have a code coverage file that checks the code coverage.

wordsearcher's People

Contributors

vcampoy avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.