File tree Expand file tree Collapse file tree
EstateManagement.DataTransferObjects/Responses
EstateManagement.Tests/Factories
EstateManagement/Factories Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ public class ContractResponse
3838 /// </value>
3939 public Guid OperatorId { get ; set ; }
4040
41+ /// <summary>
42+ /// Gets or sets the name of the operator.
43+ /// </summary>
44+ /// <value>
45+ /// The name of the operator.
46+ /// </value>
47+ public String OperatorName { get ; set ; }
48+
4149 /// <summary>
4250 /// Gets or sets the products.
4351 /// </summary>
Original file line number Diff line number Diff line change @@ -398,6 +398,7 @@ public void ModelFactory_Contract_ContractOnly_IsConverted()
398398 contractResponse . ShouldNotBeNull ( ) ;
399399 contractResponse . EstateId . ShouldBe ( contractModel . EstateId ) ;
400400 contractResponse . OperatorId . ShouldBe ( contractModel . OperatorId ) ;
401+ contractResponse . OperatorName . ShouldBe ( contractModel . OperatorName ) ;
401402 contractResponse . ContractId . ShouldBe ( contractModel . ContractId ) ;
402403 contractResponse . Description . ShouldBe ( contractModel . Description ) ;
403404 contractResponse . Products . ShouldBeNull ( ) ;
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ public ContractResponse ConvertFrom(Contract contract)
4343 ContractId = contract . ContractId ,
4444 EstateId = contract . EstateId ,
4545 OperatorId = contract . OperatorId ,
46+ OperatorName = contract . OperatorName ,
4647 Description = contract . Description
4748 } ;
4849
You can’t perform that action at this time.
0 commit comments