Beispiel #1
0
        public void ThenActivityLogRemarkIsSuccessfullyEdited()
        {
            var record = PlayerQueries.GetPlayerActivityLog();

            var data = new EditLogRemarkData
            {
                LogId   = record.First().Id,
                Remarks = TestDataGenerator.GetRandomString()
            };

            var result = AdminApiProxy.EditLogRemarkInPlayerInfo(data);

            result.Should().NotBeNull();
            result.StatusCode.ShouldBeEquivalentTo(HttpStatusCode.OK);
        }
Beispiel #2
0
 public IHttpActionResult EditLogRemark(EditLogRemarkData data)
 {
     _commands.UpdateLogRemark(data.LogId, data.Remarks);
     return(Ok(new { result = "success" }));
 }
Beispiel #3
0
 public HttpResponseMessage EditLogRemarkInPlayerInfo(EditLogRemarkData request)
 {
     return(WebClient.SecurePostAsJson <EditLogRemarkData, HttpResponseMessage>(Token, _url + AdminApiRoutes.EditLogRemarkInPlayerInfo, request));
 }