-
Notifications
You must be signed in to change notification settings - Fork 289
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
base: master
Are you sure you want to change the base?
Зубков Андрей #191
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В мне решение понравилось, за исключением того, что написсал
Еще не увидел из обязательных пунктов влияние на шрифт и несколько алгоритмов
TagCloud/FileSaver/ISaver.cs
Outdated
{ | ||
void Save(Bitmap bitmap, string OutputPath, string imageFormat); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
с маленькой буквы
TagCloud/Program.cs
Outdated
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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Выдели отдельный класс у которого будет ответственность настройка контейнера, А то сейчас она разъехалась по 2 разным местам + повторяется в тесте
foreach (var extension in reader.GetAviableExtensions()) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Available
@Pasha0666