示例#1
0
        public void Command_should_create_new_aggregate_root_with_static_method()
        {
            var command = new AggregateRootTargetStaticCreateCommand {
                Title = "AggregateRootTargetStaticCreateCommand"
            };

            TheService.Execute(command);

            AggRoot.Title.Should().Be("AggregateRootTargetStaticCreateCommand");
        }
        public void Command_should_create_new_aggregate_root_with_static_method()
        {
            var command = new AggregateRootTargetStaticCreateCommand { Title = "AggregateRootTargetStaticCreateCommand" };
            TheService.Execute(command);

            AggRoot.Title.Should().Be("AggregateRootTargetStaticCreateCommand");
        }