Esempio n. 1
0
        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;
 }
Esempio n. 3
0
 public RejectPricingHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 4
0
 public CreateActivityHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 5
0
 public AssignMechanicHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 6
0
 public GetClientsHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 7
0
 public GetRepairHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 8
0
 public FinishRepairHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 9
0
 public CancelRepairHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public GetEmployeeByIdentityIdHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public SendRepairPricingCreatedMailHandler(KOServiceDbContext dbContext, IMailSender mailSender)
 {
     _mailSender = mailSender;
     _dbContext  = dbContext;
 }
Esempio n. 12
0
 public AcceptPricingHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 13
0
 public RegisterCommandHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 14
0
 public CancelActivityHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public SendCancelRepairMailHandler(KOServiceDbContext dbContext, IMailSender mailSender)
 {
     _mailSender = mailSender;
     _dbContext  = dbContext;
 }
Esempio n. 16
0
 public CreateRepairHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 17
0
 public FinishActivityHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 18
0
 public ChangeToInProgressActivityHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 19
0
 public CreatePricingHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 20
0
 public UpdateEmployeeHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 21
0
 public GetEmployeesHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 22
0
 public GetWorkerActivitiesHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 23
0
 public GetVehiclesHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public GetRepairForClientHandler(KOServiceDbContext dbContext)
 {
     _dbContext = dbContext;
 }