public void Command_should_update_the_title_of_the_aggregate_root()
        {
            var command = new AggregateRootTargetUpdateTitleCommand { Title = "AggregateRootTargetUpdateTitleCommand" };
            TheService.Execute(command);

            AggRoot.Title.Should().Be("AggregateRootTargetUpdateTitleCommand");
        }
Ejemplo n.º 2
0
        public void Command_should_update_the_title_of_the_aggregate_root()
        {
            var command = new AggregateRootTargetUpdateTitleCommand {
                Title = "AggregateRootTargetUpdateTitleCommand"
            };

            TheService.Execute(command);

            AggRoot.Title.Should().Be("AggregateRootTargetUpdateTitleCommand");
        }
Ejemplo n.º 3
0
        public void Command_should_update_the_title_of_the_aggregate_root()
        {
            var instance = new AggregateRootTarget("TitleSetInConstructor");
            var command  = new AggregateRootTargetUpdateTitleCommand {
                Title = "AggregateRootTargetUpdateTitleCommand"
            };
            var executor = new TestAttributeMappedCommandExecutor <AggregateRootTarget>(command, instance);

            executor.Execute();

            executor.Instance.Title.Should().Be("AggregateRootTargetUpdateTitleCommand");
        }
Ejemplo n.º 4
0
        public void Command_should_update_the_title_of_the_aggregate_root()
        {
            // TODO: Fix the mocking for this test.
            Assert.Ignore("Fix mocking");

            var command = new AggregateRootTargetUpdateTitleCommand {
                Title = "AggregateRootTargetUpdateTitleCommand"
            };

            TheService.Execute(command);

            AggRoot.Title.Should().Be("AggregateRootTargetUpdateTitleCommand");
        }
Ejemplo n.º 5
0
        public void Command_should_update_the_title_of_the_aggregate_root()
        {
            var instance = new AggregateRootTarget("TitleSetInConstructor");
            var command = new AggregateRootTargetUpdateTitleCommand { Title = "AggregateRootTargetUpdateTitleCommand" };
            var executor = new TestAttributeMappedCommandExecutor<AggregateRootTarget>(command, instance);

            executor.Execute();

            executor.Instance.Title.Should().Be("AggregateRootTargetUpdateTitleCommand");
        }
Ejemplo n.º 6
0
        public void Command_should_update_the_title_of_the_aggregate_root()
        {
            // TODO: Fix the mocking for this test.
            Assert.Ignore("Fix mocking");

            var command = new AggregateRootTargetUpdateTitleCommand { Title = "AggregateRootTargetUpdateTitleCommand" };
            TheService.Execute(command);

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