public void Command_should_create_new_complex_aggregate_root_using_mixed_parameter_mappings()
        {
            var command = new ComplexAggregateRootTargetCreateNewCommand3 { Title = "ComplexAggregateRootTargetCreateNewCommand3", Quantity = 30 };
            TheService.Execute(command);

            ComplexAggRoot.Title.Should().Be("ComplexAggregateRootTargetCreateNewCommand3");
            ComplexAggRoot.Quantity.Should().Be(30);
        }
Example #2
0
        public void Command_should_create_new_complex_aggregate_root_using_mixed_parameter_mappings()
        {
            var command = new ComplexAggregateRootTargetCreateNewCommand3 {
                Title = "ComplexAggregateRootTargetCreateNewCommand3", Quantity = 30
            };

            TheService.Execute(command);

            ComplexAggRoot.Title.Should().Be("ComplexAggregateRootTargetCreateNewCommand3");
            ComplexAggRoot.Quantity.Should().Be(30);
        }
        public void Command_should_create_new_complex_aggregate_root_using_mixed_parameter_mappings()
        {
            var command = new ComplexAggregateRootTargetCreateNewCommand3 {
                Title = "ComplexAggregateRootTargetCreateNewCommand3", Quantity = 30
            };
            var executor = new TestAttributeMappedCommandExecutor <ComplexAggregateRootTarget>(command);

            executor.Execute();

            executor.Instance.Title.Should().Be("ComplexAggregateRootTargetCreateNewCommand3");
            executor.Instance.Quantity.Should().Be(30);
        }
        public void Command_should_create_new_complex_aggregate_root_using_mixed_parameter_mappings()
        {
            var command = new ComplexAggregateRootTargetCreateNewCommand3 { Title = "ComplexAggregateRootTargetCreateNewCommand3", Quantity = 30 };
            var executor = new TestAttributeMappedCommandExecutor<ComplexAggregateRootTarget>(command);

            executor.Execute();

            executor.Instance.Title.Should().Be("ComplexAggregateRootTargetCreateNewCommand3");
            executor.Instance.Quantity.Should().Be(30);
        }