示例#1
0
 public LoginController(IWoWDbContext dbContext, IReader reader, IWriter writer, IPasswordHash hasher)
 {
     this.dbContext = dbContext;
     this.reader    = reader;
     this.writer    = writer;
     this.hasher    = hasher;
 }
示例#2
0
        public Engine(IReader reader, IWriter writer, IControllerFactory controllerFactory, IWoWDbContext dbContext)
        {
            this.reader            = reader;
            this.writer            = writer;
            this.controllerFactory = controllerFactory;
            this.dbContext         = dbContext;

            this.LoggedIn        = false;
            this.CurrentUsername = "";
        }
        private bool CheckIfPlayerExists(IWoWDbContext dbContext, CharacterJsonModel jsonModel)
        {
            var foundPlayer = dbContext.Players
                              .FirstOrDefault(p => p.Username == jsonModel.Player.Username);

            if (foundPlayer != null)
            {
                return(true);
            }

            return(false);
        }
示例#4
0
        public CreateCharacterController(IWoWDbContext dbContext, ICreateEntity characterCreator, IReader reader, IWriter writer)
        {
            this.dbContext             = dbContext;
            this.entityCreator         = characterCreator;
            this.reader                = reader;
            this.writer                = writer;
            this.entityCharacteristics = new List <string>();

            this.FactionsInGame    = new List <string>();
            this.RacesInGame       = new List <string>();
            this.ProfessionsInGame = new List <string>();
            this.ClassesInGame     = new List <string>();
        }
 public CreateProfession(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#6
0
 public CreateRace(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#7
0
 public CreateGender(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#8
0
 public CreateFaction(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#9
0
 public CreateStatus(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#10
0
 public CreateResources(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#11
0
 public CreateNpc(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#12
0
 public CreateZones(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#13
0
 public Importer(IWoWDbContext context)
 {
     this.dbContext = context;
 }
示例#14
0
 public CreateClass(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
 public ListCharactersController(IWoWDbContext dbContext, IReader reader, IWriter writer)
 {
     this.dbContext = dbContext;
     this.reader    = reader;
     this.writer    = writer;
 }
 public CreateCharacter(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#17
0
 public CreatePlanet(IWoWDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#18
0
 public PdfExporter(IWoWDbContext context)
 {
     this.dbContext = context;
 }