Exemple #1
0
 public Logic(TokenMagic tokenMagic, VkApi vkApi, VkApiUtils vkApiUtils, BackgroundDownloader downloader, FilesystemTools filesystemTools, DownloadQueueProvider queueProvider, WallHandler wallHandler, AudioHandler audioHandler, PhotoHandler photoHandler, IOptionsSnapshot <Settings> settings)
 {
     this.settings        = settings.Value;
     this.tokenMagic      = tokenMagic;
     this.vkApi           = vkApi;
     this.vkApiUtils      = vkApiUtils;
     this.downloader      = downloader;
     this.filesystemTools = filesystemTools;
     this.queueProvider   = queueProvider;
     this.wallHandler     = wallHandler;
     this.audioHandler    = audioHandler;
     this.photoHandler    = photoHandler;
 }
Exemple #2
0
        public Grid(string gridName, Client client, int height, int width)
        {
            this.isDeleted         = false;
            this.gridRepository    = new GridRepository();
            this.Walls             = new List <Wall>();
            this.WallBeams         = new List <WallBeam>();
            this.DecorativeColumns = new List <DecorativeColumn>();
            this.Windows           = new List <Window>();
            this.Doors             = new List <Door>();

            this.GridName = gridName;
            this.Client   = client;
            this.Height   = height * PixelConvertor;
            this.Width    = width * PixelConvertor;
            this.PRICE_AND_COST_HANDLER   = new PriceAndCostHandler(gridRepository);
            this.GRID_HANDLER             = new GridHandler();
            this.WALLBEAM_HANDLER         = new WallBeamHandler(gridRepository);
            this.WALL_HANDLER             = new WallHandler(gridRepository);
            this.WINDOW_HANDLER           = new WindowHandler(gridRepository);
            this.DECORATIVECOLUMN_HANDLER = new DecorativeColumnHandler(gridRepository);
            this.DOOR_HANDLER             = new DoorHandler(gridRepository);
        }
Exemple #3
0
 public void SetUp()
 {
     sut = new WallHandler();
 }