Esempio n. 1
0
 public Application(IRegister register, ILogin login, IBaseUser baseUser, IAdminUser admin, IRegularUser regular)
 {
     _register        = register;
     _login           = login;
     _baseUser        = baseUser;
     _adminFunction   = admin;
     _regularFunction = regular;
 }
Esempio n. 2
0
 public Object(
     string id,
     IBaseUser author,
     System.DateTimeOffset?createdAt,
     string data)
 {
     Id        = id;
     Author    = author;
     CreatedAt = createdAt;
     Data      = data;
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            User       user       = new User();
            Department department = new Department();

            DBType dbType = new DBType();

            IBaseUser       db     = (IBaseUser)dbType.CreatDBInfo("User");
            IBaseDepartment depart = (IBaseDepartment)dbType.CreatDBInfo("Department");

            db.Insert(user);
            db.GetUser(1);
            depart.Insert(department);
            depart.GetDepartment(1);

            Console.Read();
        }