Beispiel #1
0
        public void Given_Valid_Arguments_When_I_Call_AddRole_Then_The_Correct_Service_Method_Is_Called()
        {
            //act
            _sut.AddRole(_name, _description, _permissions);

            //assert
            _roleServiceMock.Verify(v => v.AddRole(_connectionModel, _name, _description, _permissions), Times.Once);
        }
        public void AddUserRole(UserRoleDto role)
        {
            role.Name.ThrowExceptionIfNullOrEmpty("UserRoleDto.Name");

            _blaiseApi.AddRole(role.Name, role.Description, role.Permissions);
        }