Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
mstama committed Jun 28, 2017
1 parent 8e3b172 commit fc9d739
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Merchant/Program.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
using Merchant.Exceptions;
using Merchant.Extensions;
using Merchant.Interfaces;
using Merchant.Models;
using Merchant.Services;
using System;
using System.Collections.Generic;
using System.IO;
using Merchant.Extensions;

namespace Merchant
{
internal class Program
{
private static ICommandParser _parser;
private static ICommandVisitor _visitor;
private static Queue<Command> _retry = new Queue<Command>();
private static ICommandVisitor _visitor;

// Composition root
private static void Init()
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@
* [Install](https://www.microsoft.com/net/download/core#/current) .NET Core 1.1
* Restore the packages **(required once)**. In the solution folder, where **Merchant.sln** is, folder execute the followin command:

```
```terminal
dotnet restore
```

* In the project folder, where the **Merchant.csproj** is, execute the following command:

```
```terminal
dotnet build -c release
```

### How to run

* Running using the project file. In the project folder, where the **Merchant.csproj** is, execute the following command:

```
```terminal
dotnet run input.txt
```

* Running using the binary. Execute the following command with the binary file:

```
```terminal
dotnet Merchant.dll input.txt
```

### How to test

* Executing unit tests. In the unit tests project folder, where the **UnitTests.csproj** is, execute the following

```
```terminal
dotnet test
```

Expand All @@ -43,7 +43,7 @@ The solution is composed of:

* Models
* Command : Meaningful information used to perform actions.
* RomanNumber: Representation and meta-data of roman numbers.
* RomanDigit : Representation and meta-data of roman numbers.
* Services
* Converters : Responsible for converting the different number formats.
* Parser : Responsible for creating commands from the user input.
Expand All @@ -54,8 +54,10 @@ The solution is composed of:
The main program is composed of:

* Composition Root: where all modules are put together.
* Execution of the command parser.
* Execution of the visitor of the command.
* Execution of the command parser as the input file is read.
* Queue of any execution that fails (query's that are not ready!)
* Execution of the visitor method.
* Execution of failed commands.

Highlights:

Expand Down

0 comments on commit fc9d739

Please sign in to comment.