Пример #1
0
        public void IsSessionValidTestTC_Sw_SessionServiceClasses_0001_A4_A()
        {
            UnitTests.SessionService.SessionServiceClient testSession = new UnitTests.SessionService.SessionServiceClient();
            bool res = testSession.IsSessionValid(System.Guid.Empty);

            Assert.AreEqual(false, res);
        }
Пример #2
0
        public void SetNotificationInformationTestTC_Sw_SessionServiceClasses_0001_A3_C()
        {
            UnitTests.SessionService.SessionServiceClient testSession = new UnitTests.SessionService.SessionServiceClient();
            bool res = testSession.SetNotificationInformation(new System.Guid(), "http://www.google.co.in/");

            Assert.AreEqual(false, res);
        }
Пример #3
0
        public void LogoutTestTC_Sw_SessionServiceClasses_0001_A2_A()
        {
            UnitTests.SessionService.SessionServiceClient testSession = new UnitTests.SessionService.SessionServiceClient();
            bool res = testSession.Logout(new System.Guid());

            Assert.AreEqual(false, res);
        }
Пример #4
0
        public void IsSessionValidTestTC_Sw_SessionServiceClasses_0001_A4_B()
        {
            UnitTests.SessionService.SessionServiceClient testSession = new UnitTests.SessionService.SessionServiceClient();
            System.Guid testguid = testSession.Login("admin", "admin");
            bool        res      = testSession.IsSessionValid(testguid);

            Assert.AreEqual(true, res);
        }
Пример #5
0
        public void SetNotificationInformationTestTC_Sw_SessionServiceClasses_0001_A3_D()
        {
            UnitTests.SessionService.SessionServiceClient testSession = new UnitTests.SessionService.SessionServiceClient();
            System.Guid testguid = testSession.Login("admin", "admin");
            bool        res      = testSession.SetNotificationInformation(testguid, "http://www.google.co.in/");

            Assert.AreEqual(true, res);
        }
Пример #6
0
        public void SetNotificationInformationTestTC_Sw_SessionServiceClasses_0001_A3_B()
        {
            UnitTests.SessionService.SessionServiceClient testSession = new UnitTests.SessionService.SessionServiceClient();
            System.Guid testguid = testSession.Login("admin", "admin");
            bool        res      = testSession.SetNotificationInformation(testguid, "");

            Assert.AreEqual(false, res);
        }
        public void GetLogsTestTC_Sw_MaintenanceServiceClasses_InValidEndDate()
        {
            UnitTests.SessionService.SessionServiceClient testSession = new UnitTests.SessionService.SessionServiceClient();
            System.Guid        sessionId   = testSession.Login("admin", "admin");
            List <CommandType> commandList = new List <CommandType>();

            commandList.Add(CommandType.AllLogs);
            commandList.Add(CommandType.SendScheduledMessage);
            commandList.Add(CommandType.CancelScheduledMessage);
            UnitTests.MaintenanceService.MaintenanceServiceClient testMaintenance = new UnitTests.MaintenanceService.MaintenanceServiceClient();
            HistoryLogResponse testLogResponse = testMaintenance.GetLogs(sessionId, commandList.ToArray(), DateTime.Parse("2013-01-01"), DateTime.Parse("2012-01-01"), 1);

            Assert.AreEqual(ResultCodeEnum.InvalidEndDate, testLogResponse.ResultCode);
        }
Пример #8
0
 public void LoginTestTC_Sw_SessionServiceClasses_0001_A1_C()
 {
     UnitTests.SessionService.SessionServiceClient testSession = new UnitTests.SessionService.SessionServiceClient();
     System.Guid testguid = testSession.Login("", "admin");
     Assert.AreEqual(System.Guid.Empty, testguid);
 }