コード例 #1
0
        public void Command_should_create_new_aggregate_root()
        {
            var command = new AggregateRootTargetCreateNewCommand { Title = "AggregateRootTargetCreateNewCommand" };
            TheService.Execute(command);

            AggRoot.Title.Should().Be("AggregateRootTargetCreateNewCommand");
        }
コード例 #2
0
        public void Command_should_create_new_aggregate_root()
        {
            var command = new AggregateRootTargetCreateNewCommand {
                Title = "AggregateRootTargetCreateNewCommand"
            };

            TheService.Execute(command);

            AggRoot.Title.Should().Be("AggregateRootTargetCreateNewCommand");
        }
コード例 #3
0
        public void Command_should_create_new_aggregate_root()
        {
            var command = new AggregateRootTargetCreateNewCommand {
                Title = "AggregateRootTargetCreateNewCommand"
            };
            var executor = new TestAttributeMappedCommandExecutor <AggregateRootTarget>(command);

            executor.Execute();

            executor.Instance.Title.Should().Be("AggregateRootTargetCreateNewCommand");
        }
コード例 #4
0
        public void Command_should_create_new_aggregate_root()
        {
            var command = new AggregateRootTargetCreateNewCommand { Title = "AggregateRootTargetCreateNewCommand" };
            var executor = new TestAttributeMappedCommandExecutor<AggregateRootTarget>(command);

            executor.Execute();

            executor.Instance.Title.Should().Be("AggregateRootTargetCreateNewCommand");
        }