Skip to content

Instantly share code, notes, and snippets.

using FakeItEasy;
using FluentAssertions;
using Xunit;
namespace DesignPatters
{
public sealed class Pattern7
{
public interface IBank { decimal SavingsAmount(string customer); }
using FluentAssertions;
using Xunit;
namespace DesignPatters
{
public sealed class Pattern6
{
interface IProduct { decimal Cost { get; } }
using System.Text;
using FluentAssertions;
using Xunit;
namespace DesignPatters
{
public sealed class Pattern5
{
interface IDrawable
using System.Collections.Generic;
using FluentAssertions;
using Xunit;
namespace DesignPatters
{
public sealed class Pattern4
{
public class Computer
{
using FluentAssertions;
using Xunit;
namespace DesignPatters
{
public sealed class Pattern3
{
public abstract class Approver
{
using System.Collections.Generic;
using FakeItEasy;
using FluentAssertions;
using Xunit;
namespace DesignPatters
{
public class Pattern2
{
using FakeItEasy;
using Xunit;
namespace DesignPatters
{
public sealed class Pattern1
{
public interface IAmericanSocket { void GetPower(); }
public interface IEuropeanSocket { void RetrievePower(); }
public sealed class EuropeanDevice {
using System.Collections.Generic;
using System.Diagnostics;
using FluentAssertions;
using Xunit;
namespace SompareWithRuby
{
[DebuggerDisplay("{Payload}")]
public sealed class Node<T>
{
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main()
{
// Пример вызова функции без аргументов
var x = GetNumberFromConsole();