public ShareController(IFileLogic fileLogic, IShareControllerHelper shareControllerHelper, IWebHostEnvironment hostingEnvironment, IAccountLogic accountLogic) { _fileLogic = fileLogic; _shareControllerHelper = shareControllerHelper; _hostingEnvironment = hostingEnvironment; _uploads = Path.Combine(_hostingEnvironment.WebRootPath, "Uploads"); _accountLogic = accountLogic; }
public PlaceLogic(ObjectContextEntities context, ICourtLogic courtLogic, ICourtBookLogic bookService, IFileLogic fileService, ILocationLogic locationService, UserAuthentication authentication) { _bookService = bookService; _fileService = fileService; _locationService = locationService; _authentication = authentication; _context = context; _courtLogic = courtLogic; }
static void Main(string[] args) { NinjectCommon.Ninject.Registration(); userLogic = NinjectCommon.Ninject.Kernel.Get <IUserLogic>(); fileLogic = NinjectCommon.Ninject.Kernel.Get <IFileLogic>(); commentLogic = NinjectCommon.Ninject.Kernel.Get <ICommentLogic>(); SignIn(); }
public void GetAllFiles() { //Arrange IFileLogic logic = LogicFactory.CreateFileMemoryLogic(); List <FileModel> AllFiles = logic.GetAllFiles(); //Act int expected = 3; int actual = AllFiles.Count; //Assert Assert.AreEqual(expected, actual); }
static DependencyResolver() { _userDAO = new UserDAO(); _authDAO = new AuthDAO(); _roleDAO = new RoleDAO(); _fileDAO = new FileDAO(); _filestorageDAO = new FTPFileStorageDAO(); _userLogic = new UserLogic(_userDAO); _authLogic = new AuthLogic(_authDAO); _roleLogic = new RoleLogic(_roleDAO); _fileLogic = new FileLogic(_fileDAO); _filestorageLogic = new FileStorageLogic(_filestorageDAO); _filemanager = new FileManager(_fileDAO, _filestorageDAO); }
public FileLogger(IFileWrapper fileWrapper, IFileLogic fileLogic) { _fileWrapper = fileWrapper; _fileLogic = fileLogic; }
public FileController(IFileLogic fileLogic) { _logic = fileLogic; }
public FilesController(IConfiguration configuration, ILogger <FilesController> logger, ITranslator translator, IFileLogic logic, IFileService fileService) : base(configuration, logger, translator) { _logic = logic; _fileService = fileService; }
public ConfigurationManager(IFileLogic fileLogic) { _fileLogic = fileLogic; }
public FilesController(IHostingEnvironment hostingEnvironment, IFileLogic fileLogic) { _hostingEnvironment = hostingEnvironment; _fileLogic = fileLogic; }
public ConfigurationManager(IFileLogic fileLogic) { _fileLogic = fileLogic; }