public static void PopulateTestData(KOServiceDbContext dbContext) { dbContext.Activities.Add(new Domain.Entities.Activity(new Guid("d2157b7a-c81e-47dc-9d5f-a4a33f5d5587"), new Guid("f87cfd0f-1e90-4803-91fe-8269d4c69153"), "wymiana silnika", 0)); dbContext.Repairs.Add(new Domain.Entities.Repair(new Guid("3297fa03-afa0-495c-965e-c9b3b712358f"), "naprawa bwm e39", Guid.NewGuid(), Guid.NewGuid())); dbContext.Employees.Add(new Domain.Entities.Employee(new Guid("4cd4ac80-867c-468c-9149-8de382edef44"), "Janusz", "Mechank", Domain.Authentication.EmployeeRole.Mechanic)); if (dbContext.SaveChanges() == 0) { throw new Exception("cannot seed data!"); } }
public GetRepairActivitiesHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public RejectPricingHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public CreateActivityHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public AssignMechanicHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public GetClientsHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public GetRepairHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public FinishRepairHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public CancelRepairHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public GetEmployeeByIdentityIdHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public SendRepairPricingCreatedMailHandler(KOServiceDbContext dbContext, IMailSender mailSender) { _mailSender = mailSender; _dbContext = dbContext; }
public AcceptPricingHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public RegisterCommandHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public CancelActivityHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public SendCancelRepairMailHandler(KOServiceDbContext dbContext, IMailSender mailSender) { _mailSender = mailSender; _dbContext = dbContext; }
public CreateRepairHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public FinishActivityHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public ChangeToInProgressActivityHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public CreatePricingHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public UpdateEmployeeHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public GetEmployeesHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public GetWorkerActivitiesHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public GetVehiclesHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }
public GetRepairForClientHandler(KOServiceDbContext dbContext) { _dbContext = dbContext; }