|
@@ -66,16 +66,28 @@ public class OrderControllerTest : TestBase
|
|
order.ShouldNotBeNull();
|
|
order.ShouldNotBeNull();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 验证中心直办工单归档后自动发布
|
|
|
|
+ /// 是否推诿, 是否不积极
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns></returns>
|
|
[Fact]
|
|
[Fact]
|
|
public async Task AutoPublish_Test()
|
|
public async Task AutoPublish_Test()
|
|
{
|
|
{
|
|
SetZuoXi();
|
|
SetZuoXi();
|
|
var order = _orderServiceMock.CreateOrder()
|
|
var order = _orderServiceMock.CreateOrder()
|
|
.办理到派单员()
|
|
.办理到派单员()
|
|
- .办理到归档(SetPaiDanYuan)
|
|
|
|
|
|
+ .办理到归档(SetPaiDanYuan, data =>
|
|
|
|
+ {
|
|
|
|
+ data.IsEvasive = true;
|
|
|
|
+ data.IsInactively = true;
|
|
|
|
+ })
|
|
.GetCreateResult();
|
|
.GetCreateResult();
|
|
var publish = await _orderPublishRepository.GetAsync(m => m.No == order.No);
|
|
var publish = await _orderPublishRepository.GetAsync(m => m.No == order.No);
|
|
publish.ShouldNotBeNull(order.No);
|
|
publish.ShouldNotBeNull(order.No);
|
|
|
|
+ var orderEntity = await _orderRepository.GetAsync(order.Id);
|
|
|
|
+ orderEntity.IsEvasive.ShouldBeTrue();
|
|
|
|
+ orderEntity.IsInactively.ShouldBeTrue();
|
|
}
|
|
}
|
|
|
|
|
|
[Fact]
|
|
[Fact]
|
|
@@ -120,27 +132,12 @@ public class OrderControllerTest : TestBase
|
|
{
|
|
{
|
|
SetZuoXi();
|
|
SetZuoXi();
|
|
var order = _orderServiceMock.CreateOrder()
|
|
var order = _orderServiceMock.CreateOrder()
|
|
- .办理到一级部门()
|
|
|
|
- .办理到归档(Set一级部门)
|
|
|
|
- .GetCreateResult();
|
|
|
|
- order.Id.ShouldNotBeNull();
|
|
|
|
- var orderEntity = await _orderRepository.GetAsync(order.Id);
|
|
|
|
- orderEntity.RealCommunicationAddress.ShouldNotBeNull();
|
|
|
|
- orderEntity.RealCommunicationTime.ShouldNotBeNull();
|
|
|
|
- orderEntity.RealContactLocale.ShouldNotBeNull();
|
|
|
|
- orderEntity.RealContactLocale.ShouldBe(true);
|
|
|
|
- orderEntity.RealHandlerName.ShouldNotBeNull();
|
|
|
|
- orderEntity.RealHandlerPhone.ShouldNotBeNull();
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- SetZuoXi();
|
|
|
|
- order = _orderServiceMock.CreateOrder()
|
|
|
|
.办理到一级部门()
|
|
.办理到一级部门()
|
|
.办理到二级部门(Set一级部门)
|
|
.办理到二级部门(Set一级部门)
|
|
.办理一级部门汇总(Set二级部门)
|
|
.办理一级部门汇总(Set二级部门)
|
|
.GetCreateResult();
|
|
.GetCreateResult();
|
|
order.Id.ShouldNotBeNull();
|
|
order.Id.ShouldNotBeNull();
|
|
- orderEntity = await _orderRepository.GetAsync(order.Id);
|
|
|
|
|
|
+ var orderEntity = await _orderRepository.GetAsync(order.Id);
|
|
orderEntity.RealCommunicationAddress.ShouldNotBeNull();
|
|
orderEntity.RealCommunicationAddress.ShouldNotBeNull();
|
|
orderEntity.RealCommunicationTime.ShouldNotBeNull();
|
|
orderEntity.RealCommunicationTime.ShouldNotBeNull();
|
|
orderEntity.RealContactLocale.ShouldNotBeNull();
|
|
orderEntity.RealContactLocale.ShouldNotBeNull();
|