public void LeaveFeedbackTest() { // Arrange ManageLocationRequest request = new ManageLocationRequest() { Comments = "Testing Comment", LocationId = "TestingLocationId", Rating = RatingEnum.FiveStars, UserId = Guid.NewGuid() }; // Act m_JerniganResourceAccess.LeaveFeedback(request); // Assert is handled by exceptions }
public void LeaveFeedbackTest() { // Arrange ManageLocationRequest request = new ManageLocationRequest() { Comments = "Testing Comment", LocationId = "TestingLocationId", Rating = RatingEnum.FiveStars, UserId = Guid.NewGuid() }; // Invoke m_JerniganManager.LeaveFeedback(request); // Verify is handled by exceptions }
public void DeleteFavoriteLocation(ManageLocationRequest request) { using (SqlConnection connection = new SqlConnection(Configuration.ConnectionString())) { SqlCommand command = new SqlCommand("DeleteFavoriteLocation", connection); SqlParameter[] sqlParams = new SqlParameter[] { new SqlParameter("@LocationId", request.LocationId), new SqlParameter("@UserId", request.UserId) }; command.Connection = connection; command.CommandType = System.Data.CommandType.StoredProcedure; command.Parameters.AddRange(sqlParams); connection.Open(); int res = command.ExecuteNonQuery(); } }
public void LeaveFeedback(ManageLocationRequest request) { // Assume it worked }
public void DeleteFavoriteLocation(ManageLocationRequest request) { // Assume it worked }
public void LeaveFeedback(ManageLocationRequest request) { m_JerniganManager.LeaveFeedback(request); }
public void DeleteFavoriteLocation(ManageLocationRequest request) { m_JerniganManager.DeleteFavoriteLocation(request); }
public void AddFavoriteLocation(ManageLocationRequest request) { m_JerniganManager.AddFavoriteLocation(request); }
public void LeaveFeedback(ManageLocationRequest request) { base.Channel.LeaveFeedback(request); }
public void DeleteFavoriteLocation(ManageLocationRequest request) { base.Channel.DeleteFavoriteLocation(request); }
public void AddFavoriteLocation(ManageLocationRequest request) { base.Channel.AddFavoriteLocation(request); }
public void LeaveFeedback(ManageLocationRequest request) { m_JerniganResourceAccess.LeaveFeedback(request); }
public void DeleteFavoriteLocation(ManageLocationRequest request) { m_JerniganResourceAccess.DeleteFavoriteLocation(request); }