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