public void SaveRequestTest()
        {
            if (string.IsNullOrEmpty(request.RequestId))
            {
                var target = new RequestDataProvider();

                Request expected = null;
                Request actual;
                actual = target.SaveRequest(request);
                Assert.IsNotNull(actual);
                ValidateRequest(actual);
                request = actual;
            }
        }
示例#2
0
 public string[] SaveRequest(Request request)
 {
     var requestProvider = new RequestDataProvider();
     Core.Model.Request response = requestProvider.SaveRequest(request.ToModel());
     return new[] {response.RequestId, response.FriendlyRequestId};
 }