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); }
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); }
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); }
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); }