Пример #1
0
        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
        }
Пример #2
0
        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
        }
Пример #3
0
        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();
            }
        }
Пример #4
0
 public void LeaveFeedback(ManageLocationRequest request)
 {
     // Assume it worked
 }
Пример #5
0
 public void DeleteFavoriteLocation(ManageLocationRequest request)
 {
     // Assume it worked
 }
Пример #6
0
 public void LeaveFeedback(ManageLocationRequest request)
 {
     m_JerniganManager.LeaveFeedback(request);
 }
Пример #7
0
 public void DeleteFavoriteLocation(ManageLocationRequest request)
 {
     m_JerniganManager.DeleteFavoriteLocation(request);
 }
Пример #8
0
 public void AddFavoriteLocation(ManageLocationRequest request)
 {
     m_JerniganManager.AddFavoriteLocation(request);
 }
Пример #9
0
 public void LeaveFeedback(ManageLocationRequest request)
 {
     base.Channel.LeaveFeedback(request);
 }
Пример #10
0
 public void DeleteFavoriteLocation(ManageLocationRequest request)
 {
     base.Channel.DeleteFavoriteLocation(request);
 }
Пример #11
0
 public void AddFavoriteLocation(ManageLocationRequest request)
 {
     base.Channel.AddFavoriteLocation(request);
 }
Пример #12
0
 public void LeaveFeedback(ManageLocationRequest request)
 {
     m_JerniganResourceAccess.LeaveFeedback(request);
 }
Пример #13
0
 public void DeleteFavoriteLocation(ManageLocationRequest request)
 {
     m_JerniganResourceAccess.DeleteFavoriteLocation(request);
 }