public void Setup() { _connectionContext = new FileSystemConnectionContext { DataRoot = @"TEST:\ThisIsNotARealDirectory\" }; var fileSystem = new InMemoryFileSystem(); _dayRepo = new DayRepo(fileSystem); }
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); }
public DayController(IDayRepo dayRepo) { _connectionContext = new FileSystemConnectionContext(HttpContext.Current.Server.MapPath("~/App_Data/")); _dayRepo = dayRepo; }
public InventoryController(IInventoryRepo inventoryRepo) { _connectionContext = new FileSystemConnectionContext(HttpContext.Current.Server.MapPath("~/App_Data/")); _inventoryRepo = inventoryRepo; }
public OperationsController(IInventoryRepo inventoryRepo) { _appDataFolder = HttpContext.Current.Server.MapPath("~/App_Data/"); _connectionContext = new FileSystemConnectionContext(_appDataFolder); _inventoryRepo = inventoryRepo; }