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