Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }