public void Command_should_create_new_complex_aggregate_root_using_name_parameter_mappings() { var command = new ComplexAggregateRootTargetCreateNewCommand2 { Title = "ComplexAggregateRootTargetCreateNewCommand2", Quantity = 20 }; TheService.Execute(command); ComplexAggRoot.Title.Should().Be("ComplexAggregateRootTargetCreateNewCommand2"); ComplexAggRoot.Quantity.Should().Be(20); }
public void Command_should_create_new_complex_aggregate_root_using_name_parameter_mappings() { var command = new ComplexAggregateRootTargetCreateNewCommand2 { Title = "ComplexAggregateRootTargetCreateNewCommand2", Quantity = 20 }; var executor = new TestAttributeMappedCommandExecutor <ComplexAggregateRootTarget>(command); executor.Execute(); executor.Instance.Title.Should().Be("ComplexAggregateRootTargetCreateNewCommand2"); executor.Instance.Quantity.Should().Be(20); }
public void Command_should_create_new_complex_aggregate_root_using_name_parameter_mappings() { var command = new ComplexAggregateRootTargetCreateNewCommand2 { Title = "ComplexAggregateRootTargetCreateNewCommand2", Quantity = 20 }; var executor = new TestAttributeMappedCommandExecutor<ComplexAggregateRootTarget>(command); executor.Execute(); executor.Instance.Title.Should().Be("ComplexAggregateRootTargetCreateNewCommand2"); executor.Instance.Quantity.Should().Be(20); }