コード例 #1
0
        public void Setup()
        {
            _connectionContext = new FileSystemConnectionContext {
                DataRoot = @"TEST:\ThisIsNotARealDirectory\"
            };

            var fileSystem = new InMemoryFileSystem();

            _dayRepo = new DayRepo(fileSystem);
        }
コード例 #2
0
        public void Setup()
        {
            _connectionContext = new FileSystemConnectionContext {
                DataRoot = @"TEST:\ThisIsNotARealDirectory\"
            };

            var snapshotProcessor = new Mock <IInventorySnapshotProcessor>();
            var resourceRepo      = new ResourceRepo();

            var fileSystemWrapper = new InMemoryFileSystem();

            _inventoryRepo = new InventoryRepo(snapshotProcessor.Object, resourceRepo, fileSystemWrapper);
        }
コード例 #3
0
 public DayController(IDayRepo dayRepo)
 {
     _connectionContext = new FileSystemConnectionContext(HttpContext.Current.Server.MapPath("~/App_Data/"));
     _dayRepo           = dayRepo;
 }
コード例 #4
0
 public InventoryController(IInventoryRepo inventoryRepo)
 {
     _connectionContext = new FileSystemConnectionContext(HttpContext.Current.Server.MapPath("~/App_Data/"));
     _inventoryRepo     = inventoryRepo;
 }
コード例 #5
0
 public OperationsController(IInventoryRepo inventoryRepo)
 {
     _appDataFolder     = HttpContext.Current.Server.MapPath("~/App_Data/");
     _connectionContext = new FileSystemConnectionContext(_appDataFolder);
     _inventoryRepo     = inventoryRepo;
 }