예제 #1
0
        public void Handler_CreateUserGroup()
        {
            var createuserCommand = new CreateUserGroupCommand();

            createuserCommand.UserId  = 1;
            createuserCommand.GroupId = 1;

            var result = createUserGroupCommandHandler.Handle(createuserCommand, new System.Threading.CancellationToken()).Result;

            Assert.That(result.Success, Is.True);
        }
예제 #2
0
        public void Handler_CreateUserGroup()
        {
            var createUserCommand = new CreateUserGroupCommand();

            createUserCommand.UserId  = 1;
            createUserCommand.GroupId = 1;

            var result = _createUserGroupCommandHandler.Handle(createUserCommand, new System.Threading.CancellationToken()).Result;

            result.Success.Should().BeTrue();
        }