Skip to content

Commit

Permalink
Renamed files for simplicity.
Browse files Browse the repository at this point in the history
  • Loading branch information
neochief committed Feb 5, 2019
1 parent 9a8721c commit 8fd2e36
Show file tree
Hide file tree
Showing 108 changed files with 401 additions and 1,472 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace RefactoringGuru.DesignPatterns.AbstractFactory.Structural
namespace RefactoringGuru.DesignPatterns.AbstractFactory.Conceptual
{
interface IAbstractFactory
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>

</Project>
</Project>
File renamed without changes.
47 changes: 47 additions & 0 deletions Adapter.Conceptual/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using System;

namespace RefactoringGuru.DesignPatterns.Adapter.Conceptual
{
interface ITarget
{
string GetRequest();
}

class Adaptee
{
public string GetSpecificRequest()
{
return "Specific request.";
}
}

class Adapter : ITarget
{
private readonly Adaptee _adaptee;

public Adapter(Adaptee adaptee)
{
_adaptee = adaptee;
}

public string GetRequest()
{
return $"This is '{_adaptee.GetSpecificRequest()}'";
}
}

class Program
{
static void Main()
{
Adaptee adaptee = new Adaptee();

ITarget target = new Adapter(adaptee);

Console.WriteLine("Adaptee interface is incompatible with the client.");
Console.WriteLine("But with adapter client can call it's method.");

Console.WriteLine(target.GetRequest());
}
}
}
86 changes: 0 additions & 86 deletions Adapter.Structural/Program.cs

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RefactoringGuru.DesignPatterns.Bridge.Structural
namespace RefactoringGuru.DesignPatterns.Bridge.Conceptual
{
abstract class Abstraction
{
Expand Down
48 changes: 0 additions & 48 deletions Bridge.Structural/BridgePattern.Structural.csproj

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
</Project>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RefactoringGuru.DesignPatterns.Builder.Structural
namespace RefactoringGuru.DesignPatterns.Builder.Conceptual
{
class Program
{
Expand Down
55 changes: 0 additions & 55 deletions Builder.Structural/BuilderPattern.csproj

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
</Project>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RefactoringGuru.DesignPatterns.ChainOfResponsibility.Structural
namespace RefactoringGuru.DesignPatterns.ChainOfResponsibility.Conceptual
{
interface Handler
{
Expand Down

This file was deleted.

6 changes: 6 additions & 0 deletions Command.Conceptual/Command.Conceptual.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
</Project>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RefactoringGuru.DesignPatterns.Command.Structural
namespace RefactoringGuru.DesignPatterns.Command.Conceptual
{
abstract class Command
{
Expand Down
Loading

0 comments on commit 8fd2e36

Please sign in to comment.