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