コード例 #1
0
 public CreatePaleontologistCommand(IPaleontologistRepository paleontologistRepository, string name, string username, string password)
 {
     this.paleontologistRepository = paleontologistRepository;
     this.name     = name;
     this.username = username;
     this.password = password;
 }
コード例 #2
0
ファイル: Mutation.cs プロジェクト: tandunn/DinoTracker
        public bool Login([Service] IPaleontologistRepository repo, string username, string password)
        {
            LoginCommand loginCommand = new LoginCommand(repo, username, password);

            loginCommand.Execute();

            return(true);
        }
コード例 #3
0
ファイル: Mutation.cs プロジェクト: tandunn/DinoTracker
        public bool CreatePaleontologist([Service] IPaleontologistRepository repo, string name, string username)
        {
            string password = "******"; // Default password for new users

            CreatePaleontologistCommand createCommand = new CreatePaleontologistCommand(repo, name, username, password);

            createCommand.Execute();

            return(true);
        }
コード例 #4
0
ファイル: Query.cs プロジェクト: tandunn/DinoTracker
 public IEnumerable <Paleontologist> GetPaleontologists([Service] IPaleontologistRepository repo)
 {
     return(repo.GetAll());
 }