public void change_nothing_test()
        {
            var command = new ChangeNothingCommand
            {
                AggregateRootId = ObjectId.GenerateNewStringId()
            };
            var commandResult = _commandService.ExecuteAsync(command).Result;

            Assert.IsNotNull(commandResult);
            Assert.AreEqual(CommandStatus.NothingChanged, commandResult.Status);
        }
        public async Task change_nothing_test()
        {
            var command = new ChangeNothingCommand
            {
                AggregateRootId = ObjectId.GenerateNewStringId()
            };
            var commandResult = await _commandService.ExecuteAsync(command);

            Assert.NotNull(commandResult);
            Assert.Equal(CommandStatus.NothingChanged, commandResult.Status);
        }
        public void change_nothing_test()
        {
            var command = new ChangeNothingCommand
            {
                AggregateRootId = ObjectId.GenerateNewStringId()
            };
            var asyncResult = _commandService.ExecuteAsync(command).Result;

            Assert.NotNull(asyncResult);
            Assert.Equal(AsyncTaskStatus.Success, asyncResult.Status);
            var commandResult = asyncResult.Data;

            Assert.NotNull(commandResult);
            Assert.Equal(CommandStatus.NothingChanged, commandResult.Status);
        }
Ejemplo n.º 4
0
 public Task HandleAsync(ICommandContext context, ChangeNothingCommand command)
 {
     return(Task.CompletedTask);
 }
Ejemplo n.º 5
0
 public void change_nothing_test()
 {
     var command = new ChangeNothingCommand
     {
         AggregateRootId = ObjectId.GenerateNewStringId()
     };
     var asyncResult = _commandService.ExecuteAsync(command).Result;
     Assert.IsNotNull(asyncResult);
     Assert.AreEqual(AsyncTaskStatus.Success, asyncResult.Status);
     var commandResult = asyncResult.Data;
     Assert.IsNotNull(commandResult);
     Assert.AreEqual(CommandStatus.NothingChanged, commandResult.Status);
 }
 public void Handle(ICommandContext context, ChangeNothingCommand command)
 {
     //DO NOTHING
 }