forked from ddrilling/AsbCloudServer
fix after merge
This commit is contained in:
parent
91002da6ac
commit
8f29a9178b
@ -573,9 +573,10 @@ public class ProcessMapPlanDrillingControllerTest: BaseIntegrationTest
|
||||
const string fileName = "ProcessMapPlanDrillingValid.xlsx";
|
||||
var stream = Assembly.GetExecutingAssembly().GetFileCopyStream(fileName);
|
||||
|
||||
//act
|
||||
var streamPart = new StreamPart(stream, fileName, "application/octet-stream");
|
||||
var response = await client.Parse(IdWell, new[] { streamPart });
|
||||
|
||||
//act
|
||||
var response = await client.Parse(IdWell, streamPart);
|
||||
|
||||
//assert
|
||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||
@ -602,9 +603,10 @@ public class ProcessMapPlanDrillingControllerTest: BaseIntegrationTest
|
||||
const string fileName = "ProcessMapPlanDrillingInvalid.xlsx";
|
||||
var stream = Assembly.GetExecutingAssembly().GetFileCopyStream(fileName);
|
||||
|
||||
//act
|
||||
var streamPart = new StreamPart(stream, fileName, "application/octet-stream");
|
||||
var response = await client.Parse(IdWell, new[] { streamPart });
|
||||
|
||||
//act
|
||||
var response = await client.Parse(IdWell, streamPart);
|
||||
|
||||
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user