Exemplo n.º 1
0
        public void LoadById()
        {
            Language language = LoadLanguage("ABAP");
            Project  project  = LoadProject();


            ProjectLanguageList projectLanguages = new ProjectLanguageList();

            projectLanguages.Load();
            ProjectLanguage projectLanguage = new ProjectLanguage();

            projectLanguage.LoadById(projectLanguages.FirstOrDefault(p => p.LanguageId == language.Id && p.ProjectId == project.Id).Id);

            Assert.IsNotNull(projectLanguage);
        }
Exemplo n.º 2
0
        public void Delete()
        {
            Language language = LoadLanguage("MATLAB");
            Project  project  = LoadProject();


            ProjectLanguageList projectLanguages = new ProjectLanguageList();

            projectLanguages.Load();
            ProjectLanguage projectLanguage = new ProjectLanguage();

            projectLanguage.LoadById(projectLanguages.FirstOrDefault(p => p.LanguageId == language.Id && p.ProjectId == project.Id).Id);

            int rowsAffected = projectLanguage.Delete();

            Assert.IsTrue(rowsAffected == 1);
        }