Beispiel #1
0
        public void Given_Valid_Arguments_When_I_Call_UpdateRolePermissions_Then_The_Correct_Service_Method_Is_Called()
        {
            //act
            _sut.UpdateRolePermissions(_name, _permissions);

            //assert
            _roleServiceMock.Verify(v => v.UpdateRolePermissions(_connectionModel, _name, _permissions)
                                    , Times.Once);
        }
        public void UpdateUserRolePermissions(string name, IEnumerable <string> permissions)
        {
            name.ThrowExceptionIfNullOrEmpty("name");

            _blaiseApi.UpdateRolePermissions(name, permissions);
        }