public async Task GetRepositoriesTest()
        {
            RepositoryController controller = RepositoryController.GetInstance("https://docker.emconsol.com", "ususario", "contraseña");
            var repos = await controller.GetRepositoriesAsync();

            Console.Write(repos);
        }
Esempio n. 2
0
        public void SetUp()
        {
            _repo = RepositoryController.GetInstance();

            _controllerMock = new Mock <IUpdatePostController>();
            _repo.RepositoryUpdatePost.UpdatePostModel = new UpdatePostModel(false, "123", null, null, null, null, null, null, null);
            _interactor           = new InteractorUpdatePost("postId", _controllerMock.Object, _repo.RepositoryUpdatePost, _repo.RepositoryPost, _repo.RepositoryUserAuth);
            _presenterMock        = new Mock <IPresenterUpdatePost>(MockBehavior.Strict);
            _interactor.Presenter = _presenterMock.Object;
        }
        private async void Principal_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            logotypePictureBox.Image    = Resources.logotype;
            logotypePictureBox.SizeMode = PictureBoxSizeMode.StretchImage;


            var repositories = await RepositoryController.GetInstance(_server, _user, _passsword).GetRepositoriesAsync();;

            foreach (var item in repositories)
            {
                Expanded expanded = new Expanded();
                expanded.Text = item.Name;
                foreach (var tag in item.Tags)
                {
                    Label tagLabel = new Label {
                        Text = tag.Name
                    };
                    expanded.ChildControls.Add(tagLabel);
                }
                repositoriesPanel.Controls.Add(expanded);
            }
            this.Cursor = Cursors.Default;
        }
Esempio n. 4
0
        public void RepositoryRestHeaderTest()
        {
            var repositoryController = RepositoryController.GetInstance();

            Assert.IsInstanceOf <IRepositoryRestHeader>(repositoryController.RepositoryRestHeader);
        }
Esempio n. 5
0
        public void RepositoryUserSettingsTest()
        {
            var repositoryController = RepositoryController.GetInstance();

            Assert.IsInstanceOf <IRepositoryUserSettings>(repositoryController.RepositoryUserSettings);
        }
Esempio n. 6
0
        public void RepositoryPostTest()
        {
            var repositoryController = RepositoryController.GetInstance();

            Assert.IsInstanceOf <IRepositoryPost>(repositoryController.RepositoryPost);
        }
Esempio n. 7
0
        public void RepositoryUserAuthTest()
        {
            var repositoryController = RepositoryController.GetInstance();

            Assert.IsInstanceOf <IRepositoryUserAuth>(repositoryController.RepositoryUserAuth);
        }
Esempio n. 8
0
        public void RepositoryThemesTest()
        {
            var repositoryController = RepositoryController.GetInstance();

            Assert.IsInstanceOf <IRepositoryThemes>(repositoryController.RepositoryThemes);
        }
Esempio n. 9
0
        public void RepositoryQcTest()
        {
            var repositoryController = RepositoryController.GetInstance();

            Assert.IsInstanceOf <IRepositoryQc>(repositoryController.RepoQc);
        }
Esempio n. 10
0
        public void CtorTest()
        {
            var repositoryController = RepositoryController.GetInstance();

            Assert.IsInstanceOf <RepositoryController>(repositoryController);
        }
Esempio n. 11
0
 public RouterOptionsCell(UIViewController viewController, ILang locale)
 {
     _viewController   = viewController;
     _locale           = locale;
     _logOutController = new LogOutController(Connection.ConnectionController.GetInstance(), RepositoryController.GetInstance());
     _logOutController.OnRecieveModel += OnMessage;
 }
Esempio n. 12
0
 static DataService()
 {
     NotificationCenter   = new NotificationCenter();
     RepositoryController = RepositoryController.GetInstance();
 }