Ejemplo n.º 1
0
 //todo  : add Authorize parameters
 public TestController(ITestService tService, ICourseService cService, IProfileService pService, IJournalService jService)
 {
     _testService = tService;
     _courseService = cService;
     _profileService = pService;
     _journalService = jService;
 }
Ejemplo n.º 2
0
        public void TestSetup()
        {
            pageService = new PageService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            journalService = new JournalService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            listsService = new ListsService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            listItemsService = new ListItemsService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            notesService = new NotesService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            separatorService = new SeparatorService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            statusService = new StatusService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            tagsService = new TagsService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            userService = new UserService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());

            testPageId = ConfigurationSettings.AppSettings["backpack.pages.testpage"].ToString();
            testUserId = ConfigurationSettings.AppSettings["backpack.users.testuserid"].ToString();
            testInvalidUserId = ConfigurationSettings.AppSettings["backpack.users.testinvaliduserid"].ToString();
            testTagId = ConfigurationSettings.AppSettings["backpack.pages.testtagid"].ToString();
            testPageTitle = ConfigurationSettings.AppSettings["backpack.pages.testpagetitle"].ToString();
        }
Ejemplo n.º 3
0
 public static XmlDocument UpdateJournalEntry(IJournalService service, string journalEntryId, string updatedJournalEntry)
 {
     return service.Update(journalEntryId, updatedJournalEntry);
 }
Ejemplo n.º 4
0
 public static XmlDocument DeleteJournalEntry(IJournalService service, string journalEntryId)
 {
     return service.Delete(journalEntryId);
 }
Ejemplo n.º 5
0
 // journal
 public static XmlDocument CreateJournalEntry(IJournalService service, string testUserId, string journalEntry)
 {
     return service.Create(testUserId, journalEntry);
 }
 public JournalController(IJournalService jservice, IProfileService profileServicel)
 {
     _journalService = jservice;
     _profileServicel = profileServicel;
 }
 public void SavePrice(int userID, string identifier, IJournalService journalService, ChangeType changeType)
 {
     journalService.Record(identifier, ItemID, ItemUnitID, ManufacturerID, MovingAverageID, Convert.ToDecimal(AverageCost), Convert.ToDecimal(Margin), Convert.ToDecimal(SellingPrice), userID, changeType);
 }
Ejemplo n.º 8
0
 public GroupController(IGroupService groupService,IJournalService journalService )
 {
     _groupService = groupService;
     _journalService = journalService;
 }