public void LocalPointServiceRemoveLocalPoint_UserIsUser_ThrowMethodAccessException() { // Arrange var user = new User(Guid.NewGuid(), Guid.NewGuid().ToString()); Authorization.SetUser(user); ILocalPointService regionService = new LocalPointService(_mockUnitOfWork.Object, _mockMapper.Object); // Act // Assert Assert.ThrowsAsync <MethodAccessException>(() => regionService.RemoveLocalPoint(Guid.NewGuid())); }