public frmChat()
        {
            UContainer.Registration();

            InitializeComponent();

            auth = UContainer.services.Resolve <Authorization>();
            ch   = UContainer.services.Resolve <ChatOperations>();
        }
Beispiel #2
0
        public BaseTest()
        {
            auth  = new Authorization(i_auth);
            ch    = new ChatOperations(i_ch);
            admin = new Administration(i_auth, i_ch);

            if (auth == null)
            {
                ThrowException($"Object { typeof(Authorization).Name} is null");
            }
            if (ch == null)
            {
                ThrowException($"Object { typeof(ChatOperations).Name} is null");
            }
            if (admin == null)
            {
                ThrowException($"Object { typeof(Administration).Name} is null");
            }
        }