public void Greeting_Test() { _errorString = ""; List <Greeting> oGreetings = _tempUser.PrimaryCallHandler().GetGreetings(); Assert.IsFalse(oGreetings == null || oGreetings.Count == 0, "Failed to fetch greetings:"); Assert.IsTrue(string.IsNullOrEmpty(_errorString), "Error parsing Json for greetings:" + _errorString); }
public void Update_ExitAction_Success() { _tempUser.ClearPendingChanges(); _tempUser.ExitAction = ActionTypes.GoTo; _tempUser.ExitTargetConversation = ConversationNames.PHGreeting; _tempUser.ExitTargetHandlerObjectId = _tempUser.PrimaryCallHandler().ObjectId; var res = _tempUser.Update(); Assert.IsTrue(res.Success, "Updating exit conversation to valid values failed:" + res); }