예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }