Exemple #1
0
        public void ChangeCurrentProfile()
        {
            var            fservice = new FileProfileService();
            List <Profile> profiles = (List <Profile>)fservice.GetProfilesForUser(null);

            fservice.SetActiveForUser(null, profiles[profiles.Count - 1]);
            Profile expected = profiles[0];
            Profile actual   = fservice.GetActiveForUser(null);

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void UpdateYellowProfile()
        {
            var     fservice = new FileProfileService();
            Profile yellow   = new Profile()
            {
                Name           = "Yellow",
                Configurations = new Dictionary <string, dynamic>()
            };

            yellow.Configurations.Add("mouse", "ffff00");

            fservice.UpdateProfileOnUser(null, "Yellow", yellow);
        }
Exemple #3
0
        public void TestAddProfile()
        {
            var profile = new Profile
            {
                Name           = "Green",
                Configurations = new Dictionary <string, dynamic>()
            };

            profile.Configurations.Add("mouse", "00ffff");
            var fservice = new FileProfileService();

            fservice.AddProfileToUser(null, profile);
        }
Exemple #4
0
        public void RemoveGreenProfile()
        {
            var fservice = new FileProfileService();

            fservice.RemoveProfileFromUser(null, "Green");
        }