Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Зубков Андрей #191

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

HardreaM
Copy link

Copy link

@Pasha0666 Pasha0666 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В мне решение понравилось, за исключением того, что написсал
Еще не увидел из обязательных пунктов влияние на шрифт и несколько алгоритмов

Comment on lines 6 to 8
{
void Save(Bitmap bitmap, string OutputPath, string imageFormat);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

с маленькой буквы

Comment on lines 20 to 37
var settings = Configurator.Parse(args, builder);
builder.RegisterType<TxtReader>().As<IFileReader>();
builder.RegisterType<ImageSaver>().As<ISaver>();
builder.RegisterType<CloudDrawer>().As<IDrawer>();
builder.RegisterType<WordRankerByFrequency>().As<IWordRanker>();
builder.RegisterType<DefaultPreprocessor>().As<IPreprocessor>();

builder.RegisterType<ConsoleUI>().As<IUserInterface>();

builder.Register(c => new WordFilter().UsingFilter((word) => word.Length > 3)).As<IFilter>();
builder.Register(c =>
new CircularLayouter(new SpiralGenerator(new Point(settings.CloudWidth / 2, settings.CloudWidth / 2),
settings.CloudDensity))).As<ILayouter>();
builder.Register(c => new FileReaderProvider(c.Resolve<IEnumerable<IFileReader>>())).As<IFileReaderProvider>();

builder.Register(c => settings).AsImplementedInterfaces();

var container = builder.Build();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Выдели отдельный класс у которого будет ответственность настройка контейнера, А то сейчас она разъехалась по 2 разным местам + повторяется в тесте

Comment on lines 25 to 26
foreach (var extension in reader.GetAviableExtensions())
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants