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");
        }
예제 #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");
        }
예제 #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");
        }
예제 #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");
        }
예제 #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");
        }
예제 #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");
        }