This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ClientCode | |
{ | |
var _exportFileTypeRepo = new ExportFileTypeRepository(); | |
var _exportFileRepo = new ExportFileRepository(); | |
var _imageStoreRepo = new ImageStoreRepository(); | |
var exportFileService = new ExportFileService() | |
{ | |
_exportFileTypeRepository = _exportFileTypeRepo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ClientCodeWithNinject | |
{ | |
var exportFileService = Services.GetExportFileService(); | |
} | |
public static class Services | |
{ | |
public static ExportFileService GetExportFileService() | |
{ | |
var kernel = new StandardKernel(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
namespace TweleveDaysOfChristmas | |
{ | |
internal class Program | |
{ | |
public static string[] SpokenNumber = | |
{ | |
"First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Connection, EntitySubscriberInterface, getMetadataArgsStorage, Repository, UpdateEvent } from 'typeorm'; | |
import { Injectable } from '@nestjs/common'; | |
import { InjectConnection, InjectRepository } from '@nestjs/typeorm'; | |
import { updatedDiff } from 'deep-object-diff'; | |
import { AuditTrailEntity } from '../entities/AuditTrailEntity'; | |
import { AuditTrailValueEntity } from '../entities/AuditTrailValueEntity'; | |
import { AuditHistoryToAuditTrailEntity } from '../entities/AuditHistoryToAuditTrailEntity'; | |
import { AuditHistoryEntity } from '../entities/AuditHistoryEntity'; | |
@Injectable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { setupTestDatabase, TestPackage } from '../../../../db/testing/setupTestDatabase'; | |
import { JobService } from './job.service'; | |
import { FixtureResolver } from '../../../../db/testing/fixture.loader'; | |
import { SERVICE_DB } from '../../../../db/tokens'; | |
import { CreateJobInput } from '../../../job-list-view/inputs/create-job.input'; | |
import { v4 } from 'uuid'; | |
import { UpdateJobInput } from '../../../job-list-view/inputs/update-job.input'; | |
describe('Test Jobs', () => { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Args, Field, ID, Mutation, ObjectType, Resolver } from '@nestjs/graphql'; | |
import { BasinJobService } from '../../general/services/job/basin-job.service'; | |
@ObjectType() | |
class DeleteBasinForJobInput { | |
@Field(_ => ID) | |
public jobId: string; | |
@Field(_ => [String]) | |
public basinNames: string[]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Args, Field, ID, Mutation, ObjectType, Resolver } from '@nestjs/graphql'; | |
import { BasinJobService } from '../../general/services/job/basin-job.service'; | |
@ObjectType() | |
class DeleteBasinForJobInput { | |
@Field(_ => ID) | |
public jobId: string; | |
@Field(_ => [String]) | |
public basinNames: string[]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
db: | |
image: library/postgres:11.1-alpine | |
# Docker for Mac does not support tmpfs mounts. If on linux, uncomment this out for a great performance boost | |
# volumes: | |
# - type: tmpfs | |
# target: /var/lib/postgresql/data | |
# DockerDisk should be mapped to a ram disk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.3' | |
services: | |
db: | |
image: library/postgres:11.1-alpine | |
# Docker for Mac does not support tmpfs mounts. If on linux, uncomment this out for a great performance boost | |
# volumes: | |
# - type: tmpfs | |
# target: /var/lib/postgresql/data | |
# DockerDisk should be mapped to a ram disk, but osx filesystem event API is horribad right now. When |