public void CreateOrderRequest_IgnoresNullZipConfig() { var request = new CreateOrderRequest() { Order = new ZipOrder() }; request.ApplyDefaults(null); }
public void CreateOrderRequest_IgnoresNullOrder_WhenApplyingDefaults() { var config = CreateZipConfig(); var request = new CreateOrderRequest() { }; request.ApplyDefaults(config); Assert.IsNull(request.Order); }
public void CreateOrderRequest_AppliesTerminalIdDefault() { var config = CreateZipConfig(); var request = new CreateOrderRequest() { Order = new ZipOrder() }; request.ApplyDefaults(config); Assert.AreEqual(config.DefaultTerminalId, request.TerminalId); }
public void CreateOrderRequest_AppliesOperatorDefault() { var config = CreateZipConfig(); var request = new CreateOrderRequest() { Order = new ZipOrder() }; request.ApplyDefaults(config); Assert.AreEqual(config.DefaultOperator, request.Order.Operator); }